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: References: Date: Tue, 26 Oct 2010 12:35:04 +0200 Message-ID: Subject: Re: bash script + heredoc + tftp = bash ends unexpectedly From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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