X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Mail-Followup-To: cygwin@cygwin.com
To: cygwin@cygwin.com
From: Gary <cygwin@garydjones.name>
Subject: Re: bash script + heredoc + tftp = bash ends unexpectedly
Date: Tue, 26 Oct 2010 13:01:46 +0200
Lines: 35
Message-ID: <ia6ces$38b$1@dough.gmane.org>
References: <ia6113$emb$1@dough.gmane.org> <ia66o4$a9b$1@dough.gmane.org>	<AANLkTikf+RjpF7YCrLrw3MfkCaJw-xoTg+WDD1eKZnVk@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin)
X-No-Archive: Yes
Mail-Copies-To: never
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

