ash: fix . builtin

Also, move [[ ]] comment to test.c and expand it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-06-14 19:42:12 +02:00
parent 2441060beb
commit 82a6fb3ea6
6 changed files with 66 additions and 46 deletions

View File

@@ -0,0 +1,2 @@
Sourced ok
Done

View File

@@ -0,0 +1,5 @@
echo "echo Sourced ok" >../sourced.sh
PATH="..:$PATH"
. sourced.sh
rm ../sourced.sh
echo Done

View File

@@ -19,7 +19,7 @@ export THIS_SH
do_test()
{
test -d "$1" || return 0
echo do_test "$1"
# echo do_test "$1"
# $1 but with / replaced by # so that it can be used as filename part
noslash=`echo "$1" | sed 's:/:#:g'`
(