commit bash-20090624 snapshot

This commit is contained in:
Chet Ramey
2011-12-08 20:11:38 -05:00
parent 2c471a92e2
commit d83a067101
5 changed files with 34 additions and 1 deletions
+1
View File
@@ -782,6 +782,7 @@ tests/comsub-eof1.sub f
tests/comsub-eof2.sub f
tests/comsub-eof3.sub f
tests/comsub-eof4.sub f
tests/comsub-eof5.sub f
tests/comsub-eof.right f
tests/comsub-posix.tests f
tests/comsub-posix.right f
+18 -1
View File
@@ -8,6 +8,23 @@ DIR=$PARENT/$FROOT
TARF=${FROOT}.tar
SRC=/usr/homes/chet/src/bash/src
fflag= sflag=
while getopts "fs" opt
do
case $opt in
f) fflag=1 ;;
s) sflag=1 ;;
*) echo "mk-takehome: usage: mk-takehome [-fs]" 2>&1
exit 2;;
esac
done
shift $(($OPTIND - 1))
if [ -n "$fflag" ]; then
rm -rf "$DIR"
fi
mkdir $DIR || exit 1
cd $DIR || exit 1
@@ -34,6 +51,6 @@ gzip -v ${TARF}
REMHOST=z4
if [ "$1" = "-s" ]; then
if [ -n "$sflag" ]; then
scp ${TARF}.gz ${REMHOST}:
fi
+4
View File
@@ -7,3 +7,7 @@ hi
./comsub-eof3.sub: line 5: syntax error: unexpected end of file
./comsub-eof4.sub: line 6: warning: here-document at line 4 delimited by end-of-file (wanted `EOF')
contents
./comsub-eof5.sub: line 8: warning: here-document at line 6 delimited by end-of-file (wanted `)')
hi
./comsub-eof5.sub: line 13: warning: here-document at line 11 delimited by end-of-file (wanted `EOF')
hi
+2
View File
@@ -7,3 +7,5 @@ ${THIS_SH} ./comsub-eof2.sub
${THIS_SH} ./comsub-eof3.sub
${THIS_SH} ./comsub-eof4.sub
${THIS_SH} ./comsub-eof5.sub
+9
View File
@@ -0,0 +1,9 @@
echo $(
cat <<\)
hi
))
echo $(
cat <<\EOF
hi
EOF)