hush: more backtick and quoting fixes...

This commit is contained in:
Denis Vlasenko
2008-06-10 22:39:37 +00:00
parent 43360e5178
commit 87f40bac14
3 changed files with 71 additions and 19 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
TEST=Q
# \` is special
echo `echo '\'TEST\`echo ZZ\`BEST`
# \$ and \\ are special
echo `echo \\$TEST`
echo `echo \$TEST`
echo a`echo \\\\b`c
# \" etc are NOT special (passed verbatim WITH \)!
echo a`echo \"`c
echo done:$?