diff options
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-bugs/quote3.right | 5 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/quote3.tests | 4 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/starquoted.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/starquoted.tests | 4 | ||||
-rw-r--r-- | shell/hush_test/hush-parsing/quote4.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-parsing/quote4.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-parsing/starquoted.right | 8 | ||||
-rwxr-xr-x | shell/hush_test/hush-parsing/starquoted.tests | 8 |
8 files changed, 19 insertions, 14 deletions
diff --git a/shell/hush_test/hush-bugs/quote3.right b/shell/hush_test/hush-bugs/quote3.right index 11443f5..069a46e 100644 --- a/shell/hush_test/hush-bugs/quote3.right +++ b/shell/hush_test/hush-bugs/quote3.right @@ -1,8 +1,3 @@ Testing: in $empty"" .. -Testing: in "$*" -.abc d e. -Testing: in "$@" -.abc. -.d e. Finished diff --git a/shell/hush_test/hush-bugs/quote3.tests b/shell/hush_test/hush-bugs/quote3.tests index c52e040..075e785 100755 --- a/shell/hush_test/hush-bugs/quote3.tests +++ b/shell/hush_test/hush-bugs/quote3.tests @@ -5,8 +5,4 @@ fi echo 'Testing: in $empty""' empty='' for a in $empty""; do echo ".$a."; done -echo 'Testing: in "$*"' -for a in "$*"; do echo ".$a."; done -echo 'Testing: in "$@"' -for a in "$@"; do echo ".$a."; done echo Finished diff --git a/shell/hush_test/hush-bugs/starquoted.right b/shell/hush_test/hush-bugs/starquoted.right deleted file mode 100644 index fedaf48..0000000 --- a/shell/hush_test/hush-bugs/starquoted.right +++ /dev/null @@ -1 +0,0 @@ -.1 abc d e f. diff --git a/shell/hush_test/hush-bugs/starquoted.tests b/shell/hush_test/hush-bugs/starquoted.tests deleted file mode 100755 index 3be2026..0000000 --- a/shell/hush_test/hush-bugs/starquoted.tests +++ /dev/null @@ -1,4 +0,0 @@ -if test $# = 0; then - exec "$THIS_SH" starquoted.tests 1 abc 'd e f' -fi -for a in "$*"; do echo ".$a."; done diff --git a/shell/hush_test/hush-parsing/quote4.right b/shell/hush_test/hush-parsing/quote4.right new file mode 100644 index 0000000..b2901ea --- /dev/null +++ b/shell/hush_test/hush-parsing/quote4.right @@ -0,0 +1 @@ +a b diff --git a/shell/hush_test/hush-parsing/quote4.tests b/shell/hush_test/hush-parsing/quote4.tests new file mode 100755 index 0000000..f1dabfa --- /dev/null +++ b/shell/hush_test/hush-parsing/quote4.tests @@ -0,0 +1,2 @@ +a_b='a b' +echo "$a_b" diff --git a/shell/hush_test/hush-parsing/starquoted.right b/shell/hush_test/hush-parsing/starquoted.right new file mode 100644 index 0000000..b56323f --- /dev/null +++ b/shell/hush_test/hush-parsing/starquoted.right @@ -0,0 +1,8 @@ +.1 abc d e f. +.1. +.abc. +.d e f. +.-1 abc d e f-. +.-1. +.abc. +.d e f-. diff --git a/shell/hush_test/hush-parsing/starquoted.tests b/shell/hush_test/hush-parsing/starquoted.tests new file mode 100755 index 0000000..2fe49b1 --- /dev/null +++ b/shell/hush_test/hush-parsing/starquoted.tests @@ -0,0 +1,8 @@ +if test $# = 0; then + exec "$THIS_SH" "$0" 1 abc 'd e f' +fi + +for a in "$*"; do echo ".$a."; done +for a in "$@"; do echo ".$a."; done +for a in "-$*-"; do echo ".$a."; done +for a in "-$@-"; do echo ".$a."; done |