delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/26/05:24:46

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Gary <cygwin AT garydjones DOT name>
Subject: Re: bash script + heredoc + tftp = bash ends unexpectedly
Date: Tue, 26 Oct 2010 11:24:19 +0200
Lines: 17
Message-ID: <ia66o4$a9b$1@dough.gmane.org>
References: <ia6113$emb$1 AT dough DOT gmane DOT org>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

  /my/script/path/foo
and
  bash /my/script/path/foo
and
  bash foo
and
  ./foo

all work fine.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019