Open WebFreak001 opened 6 months ago
What would the solution be? It can't be to add backslashes before the spaces, since that wouldn't be a valid JSON string anymore.
backslash would work, quotes would work, just anything that makes the shell run the command properly when run
As I already wrote at https://github.com/atilaneves/reggae/issues/303#issue-2314758385, some string literal escape sequences are missing an extra backslash. It might be as simple as replacing every string literal backslash with two backslashes.
the
file
property isn't really defined what exactly it holds, so it's kinda implementation defined and reggae puts multiple files in it, space separated - which would break for consumers trying to split just by spaces, because file names with spaces are not escaped.Furthermore the commands in
command
are also not escaped and contain stuff likewhich would just break if you were to try to run them like this.