From 4aca87515a5083ae0e31ce3177189fd43b6d05ac Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 3 Jan 2015 13:58:15 +0100 Subject: patch to Vanilla Tomato 1.28 --- .../src/router/busybox/shell/hush_test/hush-glob/glob1.right | 2 ++ .../src/router/busybox/shell/hush_test/hush-glob/glob1.tests | 2 ++ .../busybox/shell/hush_test/hush-glob/glob_and_assign.right | 6 ++++++ .../busybox/shell/hush_test/hush-glob/glob_and_assign.tests | 10 ++++++++++ .../router/busybox/shell/hush_test/hush-glob/glob_redir.right | 2 ++ .../router/busybox/shell/hush_test/hush-glob/glob_redir.tests | 9 +++++++++ 6 files changed, 31 insertions(+) create mode 100644 release/src/router/busybox/shell/hush_test/hush-glob/glob1.right create mode 100755 release/src/router/busybox/shell/hush_test/hush-glob/glob1.tests create mode 100644 release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.right create mode 100755 release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.tests create mode 100644 release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.right create mode 100755 release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.tests (limited to 'release/src/router/busybox/shell/hush_test/hush-glob') diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob1.right b/release/src/router/busybox/shell/hush_test/hush-glob/glob1.right new file mode 100644 index 00000000..f29ab4e6 --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob1.right @@ -0,0 +1,2 @@ +glob1.tests +glob1.tests diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob1.tests b/release/src/router/busybox/shell/hush_test/hush-glob/glob1.tests new file mode 100755 index 00000000..f980ce06 --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob1.tests @@ -0,0 +1,2 @@ +echo *glob1?t[e]sts* +echo "glob1"?'t'[e]s* diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.right b/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.right new file mode 100644 index 00000000..d46e4436 --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.right @@ -0,0 +1,6 @@ +ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp +ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp +*.tmp +ZVAR=z.tmp z.tmp +ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp +ZVAR=z.tmp ZVAR=*.tmp ZVAR=[z].tmp diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.tests b/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.tests new file mode 100755 index 00000000..0b158f20 --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob_and_assign.tests @@ -0,0 +1,10 @@ +>ZVAR=z.tmp +>z.tmp +ZVAR=*.tmp echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" +ZVAR=*.tmp /bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" +ZVAR=*.tmp +echo "$ZVAR" +echo $ZVAR +echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" +/bin/echo ZVAR=*.tmp "ZVAR=*.tmp" "ZVAR=[z].tmp" +rm ZVAR=z.tmp z.tmp diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.right b/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.right new file mode 100644 index 00000000..fbd0309b --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.right @@ -0,0 +1,2 @@ +z.tmp: +?.tmp: TEST diff --git a/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.tests b/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.tests new file mode 100755 index 00000000..621d1201 --- /dev/null +++ b/release/src/router/busybox/shell/hush_test/hush-glob/glob_redir.tests @@ -0,0 +1,9 @@ +# Redirections are not globbed. +# bash: +# if run as "sh", they are not globbed, but +# if run as "bash", they are! +>z.tmp +echo TEST >?.tmp +echo 'z.tmp:' `cat 'z.tmp'` +echo '?.tmp:' `cat '?.tmp'` +rm 'z.tmp' '?.tmp' -- cgit v1.2.3-54-g00ecf