From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127383 invoked by alias); 31 May 2017 09:06:54 -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 127345 invoked by uid 89); 31 May 2017 09:06:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=samsung, Samsung, H*F:D*samsung.com, H*UA:Outlook X-HELO: mailout2.w1.samsung.com Received: from mailout2.w1.samsung.com (HELO mailout2.w1.samsung.com) (210.118.77.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 May 2017 09:06:49 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OQT009KY7ZE2220@mailout2.w1.samsung.com> for cygwin@cygwin.com; Wed, 31 May 2017 10:06:50 +0100 (BST) Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170531090649eucas1p13c1c5989b59f6fbbe078bb15a3542765~DpaB2FfeV2620926209eucas1p1l; Wed, 31 May 2017 09:06:49 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges4.samsung.com (EUCPMTA) with SMTP id B2.E1.04729.9A78E295; Wed, 31 May 2017 10:06:49 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170531090649eucas1p2bc9eb5128d6cf4ca25bdf6381aa14dfe~DpaBO2NzE0904509045eucas1p2P; Wed, 31 May 2017 09:06:49 +0000 (GMT) Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id CE.B1.17452.9A78E295; Wed, 31 May 2017 10:06:49 +0100 (BST) Received: from fedinw7x64 ([106.109.130.16]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OQT00BEX7ZCBN40@eusync2.samsung.com>; Wed, 31 May 2017 10:06:49 +0100 (BST) From: Pavel Fedin To: 'Marco Atzeri' , cygwin@cygwin.com In-reply-to: <7eaf015c-431f-8a2e-1b2f-0db58d42df75@gmail.com> Subject: RE: Bug: bash -e misbehaves with several nested Date: Wed, 31 May 2017 09:48:00 -0000 Message-id: <000301d2d9ed$3c575a80$b5060f80$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170531090649eucas1p2bc9eb5128d6cf4ca25bdf6381aa14dfe X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?UGF2ZWwgRmVkaW4bU1JSLUNvbXBpbGVyIExhYhvsgrzshLE=?= =?UTF-8?B?7KCE7J6QG1NlbmlvciBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?UGF2ZWwgRmVkaW4bU1JSLUNvbXBpbGVyIExhYhtTYW1zdW5n?= =?UTF-8?B?IEVsZWN0cm9uaWNzG1NlbmlvciBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0NJU0hRG0MxMEdEMDFHRDAxMDE1Mw==?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170524125429eucas1p1384ad5e0c60eb4974a0f57e0f0203d9a X-RootMTR: 20170524125429eucas1p1384ad5e0c60eb4974a0f57e0f0203d9a References: <000e01d2d48c$e16d1ca0$a44755e0$@samsung.com> <000e01d2d53d$57318470$05948d50$@samsung.com> <7eaf015c-431f-8a2e-1b2f-0db58d42df75@gmail.com> X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00513.txt.bz2 Hello! > $ ./prova_bash > Works: /cygdrive/e/cygwin/tmp > > $ cat prova_bash > #!/bin/bash -e > > DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" > echo Works: $DIR Ok, ok, ok... Yet another "find it yourself" problem :) I'll try to... Sorry for late reply, i tend to forget things... Kind regards, Pavel Fedin Senior Engineer Samsung Electronics Research center Russia -- 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