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
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
REMHOST=z4
-if [ "$1" = "-s" ]; then
+if [ -n "$sflag" ]; then
scp ${TARF}.gz ${REMHOST}:
fi
./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
${THIS_SH} ./comsub-eof3.sub
${THIS_SH} ./comsub-eof4.sub
+
+${THIS_SH} ./comsub-eof5.sub
--- /dev/null
+echo $(
+cat <<\)
+hi
+))
+
+echo $(
+cat <<\EOF
+hi
+EOF)