I have this script as a wrapper for Cygwin processes:
Now, the problem is that it chokes when I pass it arguments enclosed in braces,
like your typical
passage.
Is there a way to send arguments unaltered to the child process?
Code:
@SET PROMPT=@$S$P$_
@ECHO OFF
ON BREAK REM
CALL "%~dp0fix-path.btm"
SET ENV=%@PATH[%@FULL["%~0"]]env.exe
SET CMDNAME=%@EXECSTR[cygpath.exe -u "%~1"]
SHIFT
SET LANG=%@EXECSTR[locale -uU]
"%[ENV]" -- "%[CMDNAME]" "%$"
QUIT %?
Now, the problem is that it chokes when I pass it arguments enclosed in braces,
like your typical
Code:
git for-each-ref --format %(refname) %(objectname) --sort -committerdate
Is there a way to send arguments unaltered to the child process?