hush: expand quote3.tests and move from hush-bugs to hush-parsing

This commit is contained in:
Denis Vlasenko 2008-06-18 09:22:31 +00:00
parent c1c63b622d
commit 985de15bf3
4 changed files with 33 additions and 11 deletions

View File

@ -1,3 +0,0 @@
Testing: in $empty""
..
Finished

View File

@ -1,8 +0,0 @@
if test $# = 0; then
exec "$THIS_SH" quote3.tests abc "d e"
fi
echo 'Testing: in $empty""'
empty=''
for a in $empty""; do echo ".$a."; done
echo Finished

View File

@ -0,0 +1,12 @@
Testing: in ""
..
Testing: in ''
..
Testing: in $empty
Testing: in $empty""
..
Testing: in $empty''
..
Testing: in "$empty"
..
Finished

View File

@ -0,0 +1,21 @@
empty=''
echo 'Testing: in ""'
for a in ""; do echo ".$a."; done
echo 'Testing: in '"''"
for a in ''; do echo ".$a."; done
echo 'Testing: in $empty'
for a in $empty; do echo ".$a."; done
echo 'Testing: in $empty""'
for a in $empty""; do echo ".$a."; done
echo 'Testing: in $empty'"''"
for a in $empty''; do echo ".$a."; done
echo 'Testing: in "$empty"'
for a in "$empty"; do echo ".$a."; done
echo Finished