X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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.20140214222230@mtu-net.ru>	<52FE6397.5010105@cygwin.com>	<187072112.20140214234339@mtu-net.ru>	<20140215125606.GM2246@calimero.vinschen.de>	<1745533059.20140215225708@mtu-net.ru>	<20140216120042.GP2246@calimero.vinschen.de>	<40596392.20140216184131@yandex.ru>	<20140216151107.GT2246@calimero.vinschen.de>	<6CF2FC1279D0844C9357664DC5A08BA224229D@MLBXV06.nih.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@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
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

