diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/busybox/shell/msh_test/msh-parsing | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/busybox/shell/msh_test/msh-parsing')
14 files changed, 36 insertions, 0 deletions
diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.right b/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.right new file mode 100644 index 00000000..d86bac9d --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.right @@ -0,0 +1 @@ +OK diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.tests new file mode 100755 index 00000000..f5c40f6f --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/argv0.tests @@ -0,0 +1,4 @@ +if test $# = 0; then + exec "$THIS_SH" "$0" arg +fi +echo OK diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.right b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.right new file mode 100644 index 00000000..e427984d --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.right @@ -0,0 +1 @@ +HELLO diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.tests new file mode 100755 index 00000000..a93113a0 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol.tests @@ -0,0 +1,2 @@ +# next line has no EOL! +echo HELLO
\ No newline at end of file diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.right b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.right new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.right @@ -0,0 +1 @@ +1 diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.tests new file mode 100755 index 00000000..1220f056 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/noeol2.tests @@ -0,0 +1,7 @@ +# last line has no EOL! +if true +then + echo 1 +else + echo 2 +fi
\ No newline at end of file diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.right b/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.right new file mode 100644 index 00000000..cb382054 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.right @@ -0,0 +1 @@ +'1' diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.tests new file mode 100755 index 00000000..f5589546 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote1.tests @@ -0,0 +1,2 @@ +a=1 +echo "'$a'" diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.right b/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.right new file mode 100644 index 00000000..3bc9edcd --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.right @@ -0,0 +1 @@ +>1 diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.tests new file mode 100755 index 00000000..bd966f30 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote2.tests @@ -0,0 +1,2 @@ +a=1 +echo ">$a" diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.right b/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.right new file mode 100644 index 00000000..069a46e8 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.right @@ -0,0 +1,3 @@ +Testing: in $empty"" +.. +Finished diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.tests new file mode 100755 index 00000000..075e7857 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote3.tests @@ -0,0 +1,8 @@ +if test $# = 0; then + exec "$THIS_SH" quote3.tests abc "d e" +fi + +echo 'Testing: in $empty""' +empty='' +for a in $empty""; do echo ".$a."; done +echo Finished diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.right b/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.right new file mode 100644 index 00000000..b2901ea9 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.right @@ -0,0 +1 @@ +a b diff --git a/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.tests b/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.tests new file mode 100755 index 00000000..f1dabfa5 --- /dev/null +++ b/release/src/router/busybox/shell/msh_test/msh-parsing/quote4.tests @@ -0,0 +1,2 @@ +a_b='a b' +echo "$a_b" |