From 391eaf3c3d20239e9ef9603cb83681a4cb09f5e0 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Sun, 9 Jul 2023 17:04:16 +0500 Subject: [PATCH] wrapper: support -- in cmdline [fixes #2045] Now it is possible to do: dosemu ./foo.exe -- -help --- src/dosemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dosemu b/src/dosemu index 007be8c8c..29f7a330b 100644 --- a/src/dosemu +++ b/src/dosemu @@ -126,6 +126,9 @@ while [ $# -gt 0 ] ; do DBG="perf record --call-graph dwarf --" shift ;; + --) + break + ;; *) # this should avoid avoid resulting substitution odds SUFFIX="$SUFFIX \"$1\"" @@ -133,6 +136,7 @@ while [ $# -gt 0 ] ; do ;; esac done +SUFFIX="$SUFFIX $*" [ -z "$DOSEMU_QUIET" ] || OPTS="$OPTS -q" [ -z "$DOSEMU_LOG_FILE" ] || LOG_FILE="$DOSEMU_LOG_FILE"