delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/19:37:26

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=wx
pdCGWNGHFZ2Bjad8Wt+6xikaW0pQmA2L3lcBzg4KQTkuJ+HsvFmM0PkW9MSaOuy0
J1/ALAgJ8TbuPqZBl/AcO2q/HaFuwWkNjIifbg0OvNGXVuV4lA7xmEJ/iR/tVw5q
iIAof6mD/RLjQFGQCqYw36ges2jxSRITr2q5Ojuf8=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=ubhwMfU7
CBKUli46WM2HNhsQzSE=; b=WCxHW51fVym9mM/CDau0oaWvPIc4HjJoH6kOp3hH
zsdyLn5IcThvWRvh0dWsS1uJMnal4IUdd7a/fcOgnF/i4B6rlXsQ8g8nx97r67ES
EBeRcCLdRpW5Do/SAjq3bpS9J3tN2maOdFxjU9e2BQZRX6lg3aIOAOJIZBHMRWTX
IGU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.9 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pd0-f174.google.com
MIME-Version: 1.0
X-Received: by 10.66.249.233 with SMTP id yx9mr22931809pac.3.1392597429904; Sun, 16 Feb 2014 16:37:09 -0800 (PST)
In-Reply-To: <6CF2FC1279D0844C9357664DC5A08BA224229D@MLBXV06.nih.gov>
References: <111910987 DOT 20140214222230 AT mtu-net DOT ru> <52FE6397 DOT 5010105 AT cygwin DOT com> <187072112 DOT 20140214234339 AT mtu-net DOT ru> <20140215125606 DOT GM2246 AT calimero DOT vinschen DOT de> <1745533059 DOT 20140215225708 AT mtu-net DOT ru> <20140216120042 DOT GP2246 AT calimero DOT vinschen DOT de> <40596392 DOT 20140216184131 AT yandex DOT ru> <20140216151107 DOT GT2246 AT calimero DOT vinschen DOT de> <6CF2FC1279D0844C9357664DC5A08BA224229D AT MLBXV06 DOT nih DOT gov>
Date: Sun, 16 Feb 2014 18:37:09 -0600
Message-ID: <CAAXzdLXEoNujigUD68xFhQv3XS=dCn_mYnqKnx1M4Rq0bVdhpg@mail.gmail.com>
Subject: Re: Little cygpath improvement request
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Sun, Feb 16, 2014 at 12:30 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote
> if [ ! -z "$2" ] ; then NATIVE="$(cygpath -ml "$2")" ; fi

That might better be written as this

    [ "$2" ] && NATIVE=$(cygpath -ml "$2")

You do not need the extra quotes when setting a variable in this way.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019