diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-08 03:06:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-08 03:06:04 +0200 |
commit | 4ac9819263114edb9b5b638ffa6d2e41a4bb46e7 (patch) | |
tree | f0c5bc9c7a2bf3a384b85350bfe4c9ca5ec4858f /shell/ash_test | |
parent | 5b807cd5acd1f27b3e7aa36aac2728be27c5907c (diff) | |
download | busybox-w32-4ac9819263114edb9b5b638ffa6d2e41a4bb46e7.tar.gz busybox-w32-4ac9819263114edb9b5b638ffa6d2e41a4bb46e7.tar.bz2 busybox-w32-4ac9819263114edb9b5b638ffa6d2e41a4bb46e7.zip |
apply post-1.15.1 fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-redir/redir7.right | 3 | ||||
-rwxr-xr-x | shell/ash_test/ash-redir/redir7.tests | 12 | ||||
-rw-r--r-- | shell/ash_test/ash-redir/redir8.right | 3 | ||||
-rwxr-xr-x | shell/ash_test/ash-redir/redir8.tests | 15 | ||||
-rw-r--r-- | shell/ash_test/ash-signals/savetrap.right | 8 | ||||
-rwxr-xr-x | shell/ash_test/ash-signals/savetrap.tests | 9 |
6 files changed, 50 insertions, 0 deletions
diff --git a/shell/ash_test/ash-redir/redir7.right b/shell/ash_test/ash-redir/redir7.right new file mode 100644 index 000000000..6430b0211 --- /dev/null +++ b/shell/ash_test/ash-redir/redir7.right | |||
@@ -0,0 +1,3 @@ | |||
1 | Ok | ||
2 | Ok | ||
3 | Done | ||
diff --git a/shell/ash_test/ash-redir/redir7.tests b/shell/ash_test/ash-redir/redir7.tests new file mode 100755 index 000000000..17d1040e0 --- /dev/null +++ b/shell/ash_test/ash-redir/redir7.tests | |||
@@ -0,0 +1,12 @@ | |||
1 | # Chars above 0x7f are used as special codes. | ||
2 | # 0x81 is CTLESC (see ash.c). | ||
3 | # The bug was that quoting and unquoting of them | ||
4 | # was out of sync for redirect filenames. | ||
5 | |||
6 | >unicode.sh | ||
7 | echo -e 'echo Ok >uni\x81code' >>unicode.sh | ||
8 | echo -e 'cat uni\x81code' >>unicode.sh | ||
9 | echo -e 'cat uni?code' >>unicode.sh | ||
10 | . unicode.sh | ||
11 | rm uni*code* | ||
12 | echo Done | ||
diff --git a/shell/ash_test/ash-redir/redir8.right b/shell/ash_test/ash-redir/redir8.right new file mode 100644 index 000000000..6430b0211 --- /dev/null +++ b/shell/ash_test/ash-redir/redir8.right | |||
@@ -0,0 +1,3 @@ | |||
1 | Ok | ||
2 | Ok | ||
3 | Done | ||
diff --git a/shell/ash_test/ash-redir/redir8.tests b/shell/ash_test/ash-redir/redir8.tests new file mode 100755 index 000000000..32ab607b8 --- /dev/null +++ b/shell/ash_test/ash-redir/redir8.tests | |||
@@ -0,0 +1,15 @@ | |||
1 | # Chars above 0x7f are used as special codes. | ||
2 | # 0x81 is CTLESC (see ash.c). | ||
3 | # The bug was that quoting and unquoting of them | ||
4 | # was out of sync for redirect filenames. | ||
5 | |||
6 | # Subcase when redirect filename is specified in a variable. | ||
7 | |||
8 | >unicode.sh | ||
9 | echo -e 'v=uni\x81code' >>unicode.sh | ||
10 | echo -e 'echo Ok >"$v"' >>unicode.sh | ||
11 | echo -e 'cat uni\x81code' >>unicode.sh | ||
12 | echo -e 'cat uni?code' >>unicode.sh | ||
13 | . unicode.sh | ||
14 | rm uni*code* | ||
15 | echo Done | ||
diff --git a/shell/ash_test/ash-signals/savetrap.right b/shell/ash_test/ash-signals/savetrap.right new file mode 100644 index 000000000..a59225be3 --- /dev/null +++ b/shell/ash_test/ash-signals/savetrap.right | |||
@@ -0,0 +1,8 @@ | |||
1 | trap -- 'echo Exiting' EXIT | ||
2 | trap -- 'echo WINCH!' WINCH | ||
3 | trap -- 'echo Exiting' EXIT | ||
4 | trap -- 'echo WINCH!' WINCH | ||
5 | trap -- 'echo Exiting' EXIT | ||
6 | trap -- 'echo WINCH!' WINCH | ||
7 | Done | ||
8 | Exiting | ||
diff --git a/shell/ash_test/ash-signals/savetrap.tests b/shell/ash_test/ash-signals/savetrap.tests new file mode 100755 index 000000000..c2b312fb8 --- /dev/null +++ b/shell/ash_test/ash-signals/savetrap.tests | |||
@@ -0,0 +1,9 @@ | |||
1 | trap 'echo Exiting' EXIT | ||
2 | trap 'echo WINCH!' SIGWINCH | ||
3 | v=` trap ` | ||
4 | echo "$v" | ||
5 | v=$( trap ) | ||
6 | echo "$v" | ||
7 | v=`trap` | ||
8 | echo "$v" | ||
9 | echo Done | ||