diff options
author | Denys Vlasenko | 2017-07-24 02:49:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-24 02:49:56 +0200 |
commit | e34dbc4fdcae6e21bb186c225f76d399d2656d75 (patch) | |
tree | ddca2d6cb7209bd34e6775c26e211e0c6f49d0e7 /shell/ash_test/ash-parsing/quote3.tests | |
parent | 0675b03de44b75f5f5fc7a54c164628e9ee01e9c (diff) | |
download | busybox-e34dbc4fdcae6e21bb186c225f76d399d2656d75.zip busybox-e34dbc4fdcae6e21bb186c225f76d399d2656d75.tar.gz |
ash: add all hush parsing tests to ast tests
All pass.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-parsing/quote3.tests')
-rwxr-xr-x | shell/ash_test/ash-parsing/quote3.tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/quote3.tests b/shell/ash_test/ash-parsing/quote3.tests new file mode 100755 index 0000000..b5fd597 --- /dev/null +++ b/shell/ash_test/ash-parsing/quote3.tests @@ -0,0 +1,21 @@ +empty='' + +echo 'Testing: in ""' +for a in ""; do echo ".$a."; done + +echo 'Testing: in '"''" +for a in ''; do echo ".$a."; done + +echo 'Testing: in $empty' +for a in $empty; do echo ".$a."; done + +echo 'Testing: in $empty""' +for a in $empty""; do echo ".$a."; done + +echo 'Testing: in $empty'"''" +for a in $empty''; do echo ".$a."; done + +echo 'Testing: in "$empty"' +for a in "$empty"; do echo ".$a."; done + +echo Finished |