hush: fix a bit different instance of "No EOL" bug,

add testsuite for that. Expand another testsuite.
This commit is contained in:
Denis Vlasenko
2007-05-23 00:32:25 +00:00
parent 94dace3016
commit 1a7358612f
5 changed files with 57 additions and 40 deletions

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1,7 @@
# last line has no EOL!
if true
then
echo 1
else
echo 2
fi

View File

@@ -3,3 +3,4 @@
.d.
.e.
.f.
.1 abc d e f.

View File

@@ -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