bash script + heredoc + tftp = bash ends unexpectedly

Gary cygwin@garydjones.name
Tue Oct 26 09:09:00 GMT 2010


I am trying to automate a task I need to do which uses tftp.

What I effectively have (simplest possible case which shows the error)
is:
,----
| #! /bin/sh
| 
| echo "hmmmm..."
| tftp <<END
| quit
| END
| echo "DONE!"
`----

The result of which is that I briefly see "hmmmm..." before the script,
terminal (mintty), and bash processes all simply vanish. Now, even if my
script is wrong, that seems... just mean.

GNU bash, version 3.2.51(24)-release (i686-pc-cygwin)
mintty 0.8.3


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list