Skip to content

Commit

Permalink
wrapper: support -- in cmdline [fixes dosemu2#2045]
Browse files Browse the repository at this point in the history
Now it is possible to do:

dosemu ./foo.exe -- -help
  • Loading branch information
stsp committed Jul 9, 2023
1 parent b2e9659 commit 391eaf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dosemu
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,17 @@ while [ $# -gt 0 ] ; do
DBG="perf record --call-graph dwarf --"
shift
;;
--)
break
;;
*)
# this should avoid avoid resulting substitution odds
SUFFIX="$SUFFIX \"$1\""
shift
;;
esac
done
SUFFIX="$SUFFIX $*"

[ -z "$DOSEMU_QUIET" ] || OPTS="$OPTS -q"
[ -z "$DOSEMU_LOG_FILE" ] || LOG_FILE="$DOSEMU_LOG_FILE"
Expand Down

0 comments on commit 391eaf3

Please sign in to comment.