From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1209 invoked by alias); 24 May 2017 17:40:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1119 invoked by uid 89); 24 May 2017 17:40:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Simply, hello! X-HELO: mail-wr0-f170.google.com Received: from mail-wr0-f170.google.com (HELO mail-wr0-f170.google.com) (209.85.128.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 May 2017 17:40:51 +0000 Received: by mail-wr0-f170.google.com with SMTP id z52so59341907wrc.2 for ; Wed, 24 May 2017 10:40:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=VNOhcCDobZy8g8SVzlAObBNg4bCDlEJ/FUhK08v18OA=; b=LJcw4jJkMl5AJBXCeBtQvxoNJ9c8+cHgZg7XTNrhIwcIMROxaTzDafk3sR2HrA/XYB WUHZwfyGTvExx+2JWIELoSiAf4z+cFHoqCql/ixRX3gVXvCrwRalrt2z92PVluF8Y9mf wFf7iijot4UIjIa8/CoPYPBIE3b94xRBeb9+U4VixdBLhouWhR4ZNlK5hMv2lyS64E0M tsSYgjvhthNNUBdFFG47b1Wr1oppSDSMhHK1J02SUap9aMpKqCsekuTIJUF7fLC7hiS5 7rc8gPUQfXl//U64SSvNSIDWGsNOGYYLMe+1kzP6cD2mTTUdSF9TUGNKDy0Cn9ZJXxfX VIhA== X-Gm-Message-State: AODbwcC4rt4fjerjJYRJHaBN2T4EmTYvdGWkTUQMQCsmtNGFZv580R2M KtXm/I93ZSB6MWTA2gw= X-Received: by 10.223.171.26 with SMTP id q26mr20180967wrc.15.1495647652958; Wed, 24 May 2017 10:40:52 -0700 (PDT) Received: from [192.168.2.108] (p4FDB3186.dip0.t-ipconnect.de. [79.219.49.134]) by smtp.googlemail.com with ESMTPSA id 63sm5314737wmt.9.2017.05.24.10.40.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 10:40:52 -0700 (PDT) Subject: Re: Bug: bash -e misbehaves with several nested To: cygwin@cygwin.com References: <000e01d2d48c$e16d1ca0$a44755e0$@samsung.com> From: Marco Atzeri Message-ID: Date: Wed, 24 May 2017 19:32:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <000e01d2d48c$e16d1ca0$a44755e0$@samsung.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00395.txt.bz2 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