diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-14 19:42:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-14 19:42:12 +0200 |
commit | 82a6fb3ea6b49bcf1ef21ab589179ee2d6ffdc09 (patch) | |
tree | eb8ffd6fcf3a111f5392ecb47a6ad45401ae6d82 /shell/ash_test | |
parent | 2441060bebec2d65c9d106335223f37ec6e8ea5b (diff) | |
download | busybox-w32-82a6fb3ea6b49bcf1ef21ab589179ee2d6ffdc09.tar.gz busybox-w32-82a6fb3ea6b49bcf1ef21ab589179ee2d6ffdc09.tar.bz2 busybox-w32-82a6fb3ea6b49bcf1ef21ab589179ee2d6ffdc09.zip |
ash: fix . builtin
Also, move [[ ]] comment to test.c and expand it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-misc/source1.right | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-misc/source1.tests | 5 | ||||
-rwxr-xr-x | shell/ash_test/run-all | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/shell/ash_test/ash-misc/source1.right b/shell/ash_test/ash-misc/source1.right new file mode 100644 index 000000000..0ab7c548c --- /dev/null +++ b/shell/ash_test/ash-misc/source1.right | |||
@@ -0,0 +1,2 @@ | |||
1 | Sourced ok | ||
2 | Done | ||
diff --git a/shell/ash_test/ash-misc/source1.tests b/shell/ash_test/ash-misc/source1.tests new file mode 100755 index 000000000..e2e75b227 --- /dev/null +++ b/shell/ash_test/ash-misc/source1.tests | |||
@@ -0,0 +1,5 @@ | |||
1 | echo "echo Sourced ok" >../sourced.sh | ||
2 | PATH="..:$PATH" | ||
3 | . sourced.sh | ||
4 | rm ../sourced.sh | ||
5 | echo Done | ||
diff --git a/shell/ash_test/run-all b/shell/ash_test/run-all index 4d0f39a41..ad93e251d 100755 --- a/shell/ash_test/run-all +++ b/shell/ash_test/run-all | |||
@@ -19,7 +19,7 @@ export THIS_SH | |||
19 | do_test() | 19 | do_test() |
20 | { | 20 | { |
21 | test -d "$1" || return 0 | 21 | test -d "$1" || return 0 |
22 | echo do_test "$1" | 22 | # echo do_test "$1" |
23 | # $1 but with / replaced by # so that it can be used as filename part | 23 | # $1 but with / replaced by # so that it can be used as filename part |
24 | noslash=`echo "$1" | sed 's:/:#:g'` | 24 | noslash=`echo "$1" | sed 's:/:#:g'` |
25 | ( | 25 | ( |