Denys Vlasenko | 4a1d8f6 | 2017-07-24 12:49:49 +0200 | [diff] [blame^] | 1 | test "$CONFIG_FEATURE_FANCY_ECHO" = "y" || exit 77 |
2 | |||||
3 | TEST=Q | ||||
4 | # \` is special | ||||
5 | echo `echo '\'TEST\`echo ZZ\`BEST` | ||||
6 | # \$ and \\ are special | ||||
7 | echo `echo \\$TEST` | ||||
8 | echo `echo \$TEST` | ||||
9 | echo a`echo \\\\b`c | ||||
10 | |||||
11 | # \" is not special if in unquoted `cmd` (passed verbatim WITH \), | ||||
12 | # but is special in quoted one | ||||
13 | echo `echo 11'-$a-\t-\\-\"-\`-\--\z-\*-\?-'22` "`echo 33'-$a-\t-\\-\"-\`-\--\z-\*-\?-'44`" | ||||
14 | echo done:$? |