delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/25/05:58:05

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:in-reply-to:subject:date:message-id
:mime-version:content-type:content-transfer-encoding:references;
q=dns; s=default; b=lySvQg7cc293LpcQX9vUDP1LQPa7g9Z6k07+YMEM2MA
jbeM0qyNxQROpA50G5AQ2rFSsI79eVGc3jwmvxJSWxYZhoyKjyaFH6zpUfIHaItT
t2HS7dcZi6o3mSd9GRlhlJENfUBfTKklhXZUVmd8+9lBxF7vaAFYbWkx4xJkpYR8
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:in-reply-to:subject:date:message-id
:mime-version:content-type:content-transfer-encoding:references;
s=default; bh=jV75SsdbpCopA2oQxTv+IE7ynfc=; b=XxASZUFJtc5UAVHOO
aguiQ5WtYgPtVZhCxuh1ADzSdx/wa/++DFK3aDvTJkwJKTO8O6Dsy/dAc20dKDT3
eoDSyt/M7u8iC8lgFOKdphCagvhbirnumWyz2ykmQM5/zZlFpNx+8P/yEU5Vxc7l
7wv3nLRb7KweN4xaL78EAbKp48=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,CYGWIN_OWNER_BODY,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=atzeri, Atzeri, H*UA:Outlook, H*x:Outlook
X-HELO: mailout4.w1.samsung.com
From: Pavel Fedin <p DOT fedin AT samsung DOT com>
To: "'Marco Atzeri'" <marco DOT atzeri AT gmail DOT com>, cygwin AT cygwin DOT com
In-reply-to: <be033564-acfc-1d1a-bc4c-9cbbb73b155f@gmail.com>
Subject: RE: Bug: bash -e misbehaves with several nested
Date: Thu, 25 May 2017 12:57:36 +0300
Message-id: <000e01d2d53d$57318470$05948d50$@samsung.com>
MIME-version: 1.0
X-MTR: 20000000000000000 AT CPGS
X-CMS-MailID: 20170525095738eucas1p2fe016106c6274b627a188529eebb261d
X-Msg-Generator: CA
X-Sender-IP: 182.198.249.180
X-Local-Sender: =?UTF-8?B?UGF2ZWwgRmVkaW4bU1JSLVBsYXRmb3JtIExhYhvsgrzshLE=?= =?UTF-8?B?7KCE7J6QG1NlbmlvciBFbmdpbmVlcg==?=
X-Global-Sender: =?UTF-8?B?UGF2ZWwgRmVkaW4bU1JSLVBsYXRmb3JtIExhYhtTYW1zdW5n?= =?UTF-8?B?IEVsZWN0cm9uaWNzG1NlbmlvciBFbmdpbmVlcg==?=
X-Sender-Code: =?UTF-8?B?QzEwG0NJU0hRG0MxMEdEMDFHRDAxMDEwMQ==?=
CMS-TYPE: 201P
X-HopCount: 7
X-CMS-RootMailID: 20170524125429eucas1p1384ad5e0c60eb4974a0f57e0f0203d9a
X-RootMTR: 20170524125429eucas1p1384ad5e0c60eb4974a0f57e0f0203d9a
References: <CGME20170524125429eucas1p1384ad5e0c60eb4974a0f57e0f0203d9a AT eucas1p1 DOT samsung DOT com> <000e01d2d48c$e16d1ca0$a44755e0$@samsung.com> <be033564-acfc-1d1a-bc4c-9cbbb73b155f AT gmail DOT com>
X-IsSubscribed: yes

 Hello!

> >  Hello! I'd like to report a strange bug in 64-bit bash. The following script:
> >
> > ---- cut ---
> > #/bin/bash -e
> >
> > DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
> > echo Works: $DIR
> > ---- cut ---
> >
> > Simply exits and produces no output (never reaches echo). The same script works perfectly
> on 32 bits. Versions are the same:
> >
> > --- cut ---
> 
> It works fine for me.
> 
> $ ./prova.bash
> Works: /tmp

 Huh, works here too, indeed. But there's one little thing. If you just copypasted this from my email, then you probably miss "#!"
(there's just "#", since i retyped the header, and made a typo). And with this typo it really works for some reason. Could you make
sure once again ?
 Apparently it has to do with -e switch.

Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Marco Atzeri
> Sent: Wednesday, May 24, 2017 8:41 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: Bug: bash -e misbehaves with several nested
> 
> On 24/05/2017 14:54, Pavel Fedin wrote:
> >  Hello! I'd like to report a strange bug in 64-bit bash. The following script:
> >
> > ---- cut ---
> > #/bin/bash -e
> >
> > DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
> > echo Works: $DIR
> > ---- cut ---
> >
> > Simply exits and produces no output (never reaches echo). The same script works perfectly
> on 32 bits. Versions are the same:
> >
> > --- cut ---
> 
> It works fine for me.
> 
> $ ./prova.bash
> Works: /tmp
> 
> 
>   $ uname -svr
> CYGWIN_NT-6.1 2.8.0(0.309/5/3) 2017-04-01 20:47
> 
> 
> --
> 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
> 



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