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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=BD6nlHlb4sLIFjB/ KWbszr7NHIu/M6uQjPUIr6xmWF8LY2ihHxwg3kEHuS61UqaWoXTpKHkKQJr6y4Lk qinZEX0mXEzJdJQmde3vrtmf/v42r3iyR2uG/UK8KhdUFj8DQuLdy8kfIe1XvoY5 abralGtFnBBOOXf1w6+KA7XRRwo= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=KYaNbK/yspsvXt9OM4X7jk +erF8=; b=lXZS922HSs3VNca2YdE+Zdb9yxxRW9nDJkIJrMiICIHwLKHMwRZk1b Ye4P1Nmh/Yb7Ynw05A/SSfSBqtcD9NOb/Q6w10vDPU7VuG9W8iOylBijA+iaOZaV 1rTLvJidemTcMLKMK0tQVQDOd/KHnhrc4RB74P/R4SIVU76L2RV7I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 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) Subject: Re: Bug: bash -e misbehaves with several nested To: cygwin AT cygwin DOT com References: <000e01d2d48c$e16d1ca0$a44755e0$@samsung.com> From: Marco Atzeri Message-ID: Date: Wed, 24 May 2017 19:40:37 +0200 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 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