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=rDETTdorduGicXpgPrbqQEIpBQHtFri4Hbd0MJ1bAFs N47wTv9gMNxiSfQ7l/z6hGTRrLqkWlwRTnLz1Ii7IJI27fFSX5X88m57+p8iJQaj qgjZF2HmKIB+ro3w0db2GYlhVbqfcWVPMO5HLoGUzC3gEin1MrJzvZQszK1kzanA = 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=KVBCK6oao2EHkpc61WWS9u/elEY=; b=mnfKyuuN5DADwx0OA q/xKWiDHTCM+CS+4w+skUFEN0wPjyNh0hDmImB/kLs9zJghzQYNF+GSc4yog14fa J5dkahToTmzQ27h2M9HYHfb5DFXVDqTdjVrMrsni17pf7xmS5ebN/P+mdnJONW9t Y4c6HdTEaMy8ScNRZhQ8nN3hEw= 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=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 From: Pavel Fedin

To: "'Marco Atzeri'" , cygwin AT cygwin DOT 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 12:06:47 +0300 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 AT 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 AT gmail DOT com> X-IsSubscribed: yes 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