-
When command line contains curly braces, the braces are removed before passing it to command.
It seems the issue only happens in Windows 10, Linux is fine. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
I don't have
I can reproduce this with Git bash on Windows:
but this is the same:
This also prints normally:
So.. my suspicion is that there's something weird with Git Bash's echo, but not sure what. |
Beta Was this translation helpful? Give feedback.
-
When I add escapes before the curlies I do get the desired output on Git bash: (p/shell echo "@\\{U\\}") |
Beta Was this translation helpful? Give feedback.
-
Here's another direct ProcessBuilder invocation using JVM Clojure:
This shows that this problem isn't specific to babashka.process. I'll turn this issue into a Discussion for the moment. |
Beta Was this translation helpful? Give feedback.
-
Ah, note that the problem isn't even Java specific, it happens with Node.js too:
|
Beta Was this translation helpful? Give feedback.
-
I guess the msys2 |
Beta Was this translation helpful? Give feedback.
I guess the msys2
echo
is trying to handle argument shell-stuff, but maybe not doing so well at it: msys2/MSYS2-packages#522. This comment seems to match your symptom: msys2/MSYS2-packages#522 (comment)