X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CA45384A02D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1606328770;
	bh=hjFEVbEgJBlxtNvPSw30PV17qvLr1XbgwOgt6W45v9Y=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=FNFV1tuQpbp2mAwDuJC1mUp+UbFen5vcsG/c2Q2HwsErlE5vXu0x/NV3g7M3ApjOa
	 lc2Y3K9lIyMpJaUa/eoAAH6+Wz8UADr9GPcI4lRHY3ovWxT4bsmvAf5pfRB42BvX2Z
	 v2XmVuT1C2hkFFvQl3euv9ZO2rGJDQv04eQmmoAI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 39BA6396D827
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-transfer-encoding
 :content-language;
 bh=/8cHJtQp9pMwt0XBsqdsvlBkBaeFCwIoiKiIJvK5wAY=;
 b=bj4AaSqYyomSa8d+b9abUb4tpglNof4007kFUs9E7X07733zt9b799IxYRvNnY/PeW
 B4UEYP/hxFv8C+ulNkJp/dw2+zPKszEeOWpO3YYP7TnyCgCNmyJk/stK0aUsds1VJ/0s
 IiiqDYJD3Av6DnL7GRQHmheBsiTIh/3bIj2xBYuXD3+Jx33PS5iJTf23v/nKfz94SbEM
 PEwQZP1a4LIzBXftqq+RE4hVN9TUotTBnf4dRO7MuUPNyHpBQAF8ZeFD41z5OvMSqz9r
 FqKsFUZFE950iclNs24hzYQSnra0U/u2rFrq9vpsoV0/+Kxg6Dbjf8h1NgW80gVRhi0Y
 yq4A==
X-Gm-Message-State: AOAM532B4OVUbCppECdEk4/m59Zb83bnQAO+nTv/Tu6obaTYruJqOp1x
 Ju0LKMWL9c45Pat86SJ4PX+KyPU9BpY=
X-Google-Smtp-Source: ABdhPJwHG/xOhpcdvBevta8EhidYqSMGAGvSEhS4uQZEJwO4V42S6amLnhWoCABMbAcJuawkhv3jkQ==
X-Received: by 2002:a7b:cc85:: with SMTP id p5mr5455589wma.102.1606328767139; 
 Wed, 25 Nov 2020 10:26:07 -0800 (PST)
Subject: Re: Cygwin mount option -s is not supported
To: cygwin@cygwin.com
References: <4697a70efd18481fa378325d2136322c@BELBRU-EXMP101.eeas.europa.eu>
Message-ID: <8f5d2511-c8a5-8a9e-3acc-d09da078fae1@gmail.com>
Date: Wed, 25 Nov 2020 19:26:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <4697a70efd18481fa378325d2136322c@BELBRU-EXMP101.eeas.europa.eu>
Content-Language: sk-SK
X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Vlado via Cygwin <cygwin@cygwin.com>
Reply-To: Vlado <v.99cygwin@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0APIQcMx003711

On 25.11.2020 15:18, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> ---------
>    if [ -n "`uname -s |grep -i cygwin_`" ]; then
>    # If we are on an new version of Cygnus we need to turn <letter>:/ in
>    # the path to/cygdrive/<letter>/
>      CYGDRIVE=`mount -p | tail -1 | awk '{print $1}' | sed -e 's%/$%%'`
>      WL_HOME_CYGWIN=`echo $WL_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      ANT_HOME_CYGWIN=`echo $ANT_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      PATCH_PATH_CYGWIN=`echo $PATCH_PATH | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      JAVA_HOME_CYGWIN=`echo $JAVA_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      JRE_HOME_CYGWIN=`echo $JRE_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
Hi.

Hard to say why Oracle's script is written this way. Standard Cygwin 
tool for file names conversion is cygpath. Instead of using sed, one can 
write
WL_HOME_CYGWIN=`cygpath -u $WL_HOME`
- simpler and the result will be more consistent. Example

$ WL_HOME='C:\some\dir\subdir'            # Windows path
$ echo "$WL_HOME" | sed "s#\([a-zA-Z]\):#/cygdrive/c/\1#g"
/cygdrive/c/C\some\dir\subdir             # mixed forward and back slashes
$ cygpath -u "$WL_HOME"
/cygdrive/c/some/dir/subdir               # pretty Cygwin path

Vlado


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

