Skip to content
Snippets Groups Projects
Verified Commit f9e67a32 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Further improvements to parsing of arguments on the MATLAB command-line

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)
parent cea74557
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment