diff options
Diffstat (limited to 'shell/msh_test/msh-parsing')
-rw-r--r-- | shell/msh_test/msh-parsing/argv0.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/argv0.tests | 4 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/noeol.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/noeol.tests | 2 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/noeol2.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/noeol2.tests | 7 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/quote1.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/quote1.tests | 2 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/quote2.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/quote2.tests | 2 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/quote3.right | 3 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/quote3.tests | 8 | ||||
-rw-r--r-- | shell/msh_test/msh-parsing/quote4.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-parsing/quote4.tests | 2 |
14 files changed, 36 insertions, 0 deletions
diff --git a/shell/msh_test/msh-parsing/argv0.right b/shell/msh_test/msh-parsing/argv0.right new file mode 100644 index 000000000..d86bac9de --- /dev/null +++ b/shell/msh_test/msh-parsing/argv0.right | |||
@@ -0,0 +1 @@ | |||
OK | |||
diff --git a/shell/msh_test/msh-parsing/argv0.tests b/shell/msh_test/msh-parsing/argv0.tests new file mode 100755 index 000000000..f5c40f6fe --- /dev/null +++ b/shell/msh_test/msh-parsing/argv0.tests | |||
@@ -0,0 +1,4 @@ | |||
1 | if test $# = 0; then | ||
2 | exec "$THIS_SH" "$0" arg | ||
3 | fi | ||
4 | echo OK | ||
diff --git a/shell/msh_test/msh-parsing/noeol.right b/shell/msh_test/msh-parsing/noeol.right new file mode 100644 index 000000000..e427984d4 --- /dev/null +++ b/shell/msh_test/msh-parsing/noeol.right | |||
@@ -0,0 +1 @@ | |||
HELLO | |||
diff --git a/shell/msh_test/msh-parsing/noeol.tests b/shell/msh_test/msh-parsing/noeol.tests new file mode 100755 index 000000000..a93113a03 --- /dev/null +++ b/shell/msh_test/msh-parsing/noeol.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | # next line has no EOL! | ||
2 | echo HELLO \ No newline at end of file | ||
diff --git a/shell/msh_test/msh-parsing/noeol2.right b/shell/msh_test/msh-parsing/noeol2.right new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/shell/msh_test/msh-parsing/noeol2.right | |||
@@ -0,0 +1 @@ | |||
1 | |||
diff --git a/shell/msh_test/msh-parsing/noeol2.tests b/shell/msh_test/msh-parsing/noeol2.tests new file mode 100755 index 000000000..1220f056f --- /dev/null +++ b/shell/msh_test/msh-parsing/noeol2.tests | |||
@@ -0,0 +1,7 @@ | |||
1 | # last line has no EOL! | ||
2 | if true | ||
3 | then | ||
4 | echo 1 | ||
5 | else | ||
6 | echo 2 | ||
7 | fi \ No newline at end of file | ||
diff --git a/shell/msh_test/msh-parsing/quote1.right b/shell/msh_test/msh-parsing/quote1.right new file mode 100644 index 000000000..cb382054c --- /dev/null +++ b/shell/msh_test/msh-parsing/quote1.right | |||
@@ -0,0 +1 @@ | |||
'1' | |||
diff --git a/shell/msh_test/msh-parsing/quote1.tests b/shell/msh_test/msh-parsing/quote1.tests new file mode 100755 index 000000000..f55895466 --- /dev/null +++ b/shell/msh_test/msh-parsing/quote1.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | a=1 | ||
2 | echo "'$a'" | ||
diff --git a/shell/msh_test/msh-parsing/quote2.right b/shell/msh_test/msh-parsing/quote2.right new file mode 100644 index 000000000..3bc9edcd6 --- /dev/null +++ b/shell/msh_test/msh-parsing/quote2.right | |||
@@ -0,0 +1 @@ | |||
>1 | |||
diff --git a/shell/msh_test/msh-parsing/quote2.tests b/shell/msh_test/msh-parsing/quote2.tests new file mode 100755 index 000000000..bd966f30b --- /dev/null +++ b/shell/msh_test/msh-parsing/quote2.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | a=1 | ||
2 | echo ">$a" | ||
diff --git a/shell/msh_test/msh-parsing/quote3.right b/shell/msh_test/msh-parsing/quote3.right new file mode 100644 index 000000000..069a46e8f --- /dev/null +++ b/shell/msh_test/msh-parsing/quote3.right | |||
@@ -0,0 +1,3 @@ | |||
1 | Testing: in $empty"" | ||
2 | .. | ||
3 | Finished | ||
diff --git a/shell/msh_test/msh-parsing/quote3.tests b/shell/msh_test/msh-parsing/quote3.tests new file mode 100755 index 000000000..075e78570 --- /dev/null +++ b/shell/msh_test/msh-parsing/quote3.tests | |||
@@ -0,0 +1,8 @@ | |||
1 | if test $# = 0; then | ||
2 | exec "$THIS_SH" quote3.tests abc "d e" | ||
3 | fi | ||
4 | |||
5 | echo 'Testing: in $empty""' | ||
6 | empty='' | ||
7 | for a in $empty""; do echo ".$a."; done | ||
8 | echo Finished | ||
diff --git a/shell/msh_test/msh-parsing/quote4.right b/shell/msh_test/msh-parsing/quote4.right new file mode 100644 index 000000000..b2901ea97 --- /dev/null +++ b/shell/msh_test/msh-parsing/quote4.right | |||
@@ -0,0 +1 @@ | |||
a b | |||
diff --git a/shell/msh_test/msh-parsing/quote4.tests b/shell/msh_test/msh-parsing/quote4.tests new file mode 100755 index 000000000..f1dabfa54 --- /dev/null +++ b/shell/msh_test/msh-parsing/quote4.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | a_b='a b' | ||
2 | echo "$a_b" | ||