hush: expand quote3.tests and move from hush-bugs to hush-parsing
This commit is contained in:
parent
c1c63b622d
commit
985de15bf3
@ -1,3 +0,0 @@
|
|||||||
Testing: in $empty""
|
|
||||||
..
|
|
||||||
Finished
|
|
@ -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
|
|
12
shell/hush_test/hush-parsing/quote3.right
Normal file
12
shell/hush_test/hush-parsing/quote3.right
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Testing: in ""
|
||||||
|
..
|
||||||
|
Testing: in ''
|
||||||
|
..
|
||||||
|
Testing: in $empty
|
||||||
|
Testing: in $empty""
|
||||||
|
..
|
||||||
|
Testing: in $empty''
|
||||||
|
..
|
||||||
|
Testing: in "$empty"
|
||||||
|
..
|
||||||
|
Finished
|
21
shell/hush_test/hush-parsing/quote3.tests
Executable file
21
shell/hush_test/hush-parsing/quote3.tests
Executable 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
|
Loading…
x
Reference in New Issue
Block a user