From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 39BA6396D827 for ; Wed, 25 Nov 2020 18:26:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 39BA6396D827 Received: by mail-wm1-x333.google.com with SMTP id h21so3045587wmb.2 for ; Wed, 25 Nov 2020 10:26:08 -0800 (PST) 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) Received: from [192.168.88.32] (ip187.213-181-134.pegonet.sk. [213.181.134.187]) by smtp.gmail.com with ESMTPSA id g63sm6307804wmf.10.2020.11.25.10.26.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2020 10:26:06 -0800 (PST) Sender: "Vlado B." Subject: Re: Cygwin mount option -s is not supported To: cygwin@cygwin.com References: <4697a70efd18481fa378325d2136322c@BELBRU-EXMP101.eeas.europa.eu> From: Vlado 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-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2020 18:26:09 -0000 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 :/ in > # the path to/cygdrive// > 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