Skip to content
Snippets Groups Projects
Sébastien Villemot's avatar
Sébastien Villemot authored
Under GNU/Linux and macOS, double-quote arguments before passing them to the
shell. In particular, this allows passing single-quotes within those arguments.

We therefore have to escape the four characters that are interpreted within
double-quoted strings in POSIX shells: \, ", $ and `

On Windows, also systematically escape the backslashes.

Also move display of arguments before escaping, so that it remains readable.

Ref. #1696

(cherry picked from commit ae59f4dc)
f9e67a32
History
Name Last commit Last update