hush: fix a bit different instance of "No EOL" bug,
add testsuite for that. Expand another testsuite.
This commit is contained in:
1
shell/hush_test/hush-parsing/noeol2.right
Normal file
1
shell/hush_test/hush-parsing/noeol2.right
Normal file
@@ -0,0 +1 @@
|
||||
1
|
7
shell/hush_test/hush-parsing/noeol2.tests
Executable file
7
shell/hush_test/hush-parsing/noeol2.tests
Executable file
@@ -0,0 +1,7 @@
|
||||
# last line has no EOL!
|
||||
if true
|
||||
then
|
||||
echo 1
|
||||
else
|
||||
echo 2
|
||||
fi
|
@@ -3,3 +3,4 @@
|
||||
.d.
|
||||
.e.
|
||||
.f.
|
||||
.1 abc d e f.
|
||||
|
@@ -4,5 +4,5 @@ fi
|
||||
# 'd e f' should be split into 3 separate args:
|
||||
for a in $*; do echo ".$a."; done
|
||||
|
||||
# must produce .1 abc d e f. Currently does not
|
||||
#for a in "$*"; do echo ".$a."; done
|
||||
# must produce .1 abc d e f.
|
||||
for a in "$*"; do echo ".$a."; done
|
||||
|
Reference in New Issue
Block a user