[libc++] Use proper shell escaping in the executors
authorLouis Dionne <ldionne@apple.com>
Fri, 17 Apr 2020 20:43:35 +0000 (16:43 -0400)
committerLouis Dionne <ldionne@apple.com>
Sat, 18 Apr 2020 15:22:42 +0000 (11:22 -0400)
commit5eb8d45ab5b85cb3a2edfe995cbf1d4b1beae462
tree3150659ad566c86c91879e3b019a37094c3a70f8
parent87383e408d41623ada41e2bbc371b037fa29e894
[libc++] Use proper shell escaping in the executors

This was originally committed as f8452ddfcc33 and reverted in 7cb1aa9d9368.
The issue was that shell builtins were being escaped too, and apparently
Bash won't execute a builtin when it is quoted e.g. '!'. Instead, it
thinks it's a command and it can't find it.

Re-committing the change with that issue fixed.
libcxx/test/libcxx/selftest/newformat/remote-substitutions.sh.cpp [moved from libcxx/test/libcxx/selftest/newformat/sh.cpp/remote-substitutions.sh.cpp with 100% similarity]
libcxx/test/libcxx/selftest/newformat/shell-escape.sh.cpp [new file with mode: 0644]
libcxx/utils/run.py
libcxx/utils/ssh.py