Mike Frysinger | 327fd47 | 2009-04-09 07:50:18 +0000 | [diff] [blame] | 1 | test "$CONFIG_FEATURE_FANCY_ECHO" = "y" || exit 77 |
| 2 | |
Denis Vlasenko | 87f40ba | 2008-06-10 22:39:37 +0000 | [diff] [blame] | 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 |
Denys Vlasenko | acd5bc8 | 2010-09-12 15:05:39 +0200 | [diff] [blame] | 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`" |
Denis Vlasenko | 87f40ba | 2008-06-10 22:39:37 +0000 | [diff] [blame] | 14 | echo done:$? |