Escaping characters when calling shell commands #165
-
I tried adding an alias to run a command what takes a hex color value as an argument, e.g.: trigger = $(pastel --force-color paint "#cb4b16" "[trigger = $0]" >> LOG_FILE) This fails with Is there some undocumented syntax to do this by any chance? I could've reported this as a feature request, but it's just a minor inconvenience. In this particular case it turned out Similarly it's not possible to escape characters I probably should start writing shell script wrappers to this stuff anyhow to make things cleaner. 😁 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the report! |
Beta Was this translation helpful? Give feedback.
Thanks for the report!
No, there is no way to escape these. # and ] in strings should not be interpreted.
I think this is worth an
issue
but it does not really matter, both will be fixed soon.