mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-26 23:33:08 +02:00
commit bash-20090624 snapshot
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,3 +7,5 @@ ${THIS_SH} ./comsub-eof2.sub
|
||||
${THIS_SH} ./comsub-eof3.sub
|
||||
|
||||
${THIS_SH} ./comsub-eof4.sub
|
||||
|
||||
${THIS_SH} ./comsub-eof5.sub
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
echo $(
|
||||
cat <<\)
|
||||
hi
|
||||
))
|
||||
|
||||
echo $(
|
||||
cat <<\EOF
|
||||
hi
|
||||
EOF)
|
||||
Reference in New Issue
Block a user