www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <ia66o4$a9b$1@dough.gmane.org> |
References: | <ia6113$emb$1 AT dough DOT gmane DOT org> <ia66o4$a9b$1 AT dough DOT gmane DOT org> |
Date: | Tue, 26 Oct 2010 12:35:04 +0200 |
Message-ID: | <AANLkTikf+RjpF7YCrLrw3MfkCaJw-xoTg+WDD1eKZnVk@mail.gmail.com> |
Subject: | Re: bash script + heredoc + tftp = bash ends unexpectedly |
From: | Csaba Raduly <rcsaba AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi Gary, 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: > =A0. foo Note that the dot above does not mean the current directory. It is the same= as source foo The following should have the same effect: . /my/script/path/foo 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) whereas the others all launch a separate bash process. I tried to reproduce your experiment but it always just ended normally, perhaps because I don't have tftp installed. Are you sure you don't have "exit" in your script somewhere? --=20 GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torv= alds "People disagree with me. I just ignore them." -- Linus Torvalds -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |