This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash script + heredoc + tftp = bash ends unexpectedly


Csaba Raduly wrote:
> On Tue, Oct 26, 2010 at 11:24 AM, Gary  wrote:
>> Gary wrote:
>>> 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.
>>
>> Hmm. Only happens if I start the script from the current directory,
> like so:
>> ?. foo
>
> Note that the dot above does not mean the current directory. It is the
> same as
>
> source foo

Yeah, I know. I had forgotten, but investigating reminded me :)

> I think the difference between the two cases is that ". foo" executes
> the commands in foo in the current bash instance (as if you typed them
> at the prompt)
...
> Are you sure you don't have "exit" in your script somewhere?

Oops.

:">

Just ignore me.

Nothing to see here.

Move along now, move along.


--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]