summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r--shell/hush_test/hush-vars/var_posix1.right36
-rwxr-xr-xshell/hush_test/hush-vars/var_posix1.tests36
2 files changed, 36 insertions, 36 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.right b/shell/hush_test/hush-vars/var_posix1.right
index 702bbca..373b16c 100644
--- a/shell/hush_test/hush-vars/var_posix1.right
+++ b/shell/hush_test/hush-vars/var_posix1.right
@@ -1,19 +1,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
+Empty:
abcdcd
abcdcd
abcdcd
@@ -21,7 +21,7 @@ cdcd
babcdcd
babcdcd
ababcdcd
-
+Empty:
ababcd
ababcd
ababcd
@@ -29,5 +29,5 @@ abab
ababcdc
ababcdc
ababcdcd
-
+Empty:
end
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests
index d3205b1..0ce531d 100755
--- a/shell/hush_test/hush-vars/var_posix1.tests
+++ b/shell/hush_test/hush-vars/var_posix1.tests
@@ -1,24 +1,24 @@
unset var
-echo ${var#}
-echo ${var##}
-echo ${var#*}
-echo ${var##*}
-echo ${var%}
-echo ${var%%}
-echo ${var%*}
-echo ${var%%*}
+echo Empty:${var#}
+echo Empty:${var##}
+echo Empty:${var#*}
+echo Empty:${var##*}
+echo Empty:${var%}
+echo Empty:${var%%}
+echo Empty:${var%*}
+echo Empty:${var%%*}
var=
-echo ${var#}
-echo ${var##}
-echo ${var#*}
-echo ${var##*}
-echo ${var%}
-echo ${var%%}
-echo ${var%*}
-echo ${var%%*}
+echo Empty:${var#}
+echo Empty:${var##}
+echo Empty:${var#*}
+echo Empty:${var##*}
+echo Empty:${var%}
+echo Empty:${var%%}
+echo Empty:${var%*}
+echo Empty:${var%%*}
var=ababcdcd
@@ -29,7 +29,7 @@ echo ${var##a*b}
echo ${var#?}
echo ${var##?}
echo ${var#*}
-echo ${var##*}
+echo Empty:${var##*}
echo ${var%cd}
echo ${var%%cd}
@@ -38,6 +38,6 @@ echo ${var%%c*d}
echo ${var%?}
echo ${var%%?}
echo ${var%*}
-echo ${var%%*}
+echo Empty:${var%%*}
echo end