From: Hannes Visagie <visagi_h () mtn ! co ! ug>
To: tru64-unix-managers
Subject: Bug in sh, and ksh, or not a bug ? << Shell Input. True65 5.1,
Date: Wed, 28 Feb 2001 09:07:42 +0000 [thread overview]
Message-ID: <98335136820162.tru64-unix-managers.marc@archive.invalid> (raw)
Hi all
Please confirm you can generate this bug, or is it not a bug. According to
me it is a bug.
in the following example you start a << EOF and end EOF between a if/fi
statement. All OK.
But now change to blablabla... <<EOF
EOF_ {Replace the '_' to a normal space char}
Now run and script does not work. !!!
Take it out of if/fi and works again.
#-----snip ---
#!/usr/bin/ksh
TEST='abc'
if [ "$TEST" = "abc" ]; then
ftp -i -n 10.ip.ip.ip << EOF
user your_username your_password
ls
exit
EOF
#Add a space to above line after the EOF, script fails
fi
#---- end snip ----
reply other threads:[~2001-02-28 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox