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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=q+CdOyRrz9ZCDAq3xJlV08b0LxuAJ76l7nypMXuG/GBqqji+dvEia PW4u9YvmwYXmb6NCF2dGid5xQP6vycZPmWnL+9m0vUWrIgweURRRei8/amYOBBRB QbX7XRzY1Q+bVhNxVTxu8FhWBtJ/gJ98LDlvQsQVkcd5NZbbLOTiNc= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=0jj0yHtRSc3F3/fHn8jfd4FIn6c=; b=PWHuQZeR24EVQxcvaXS0K0XlOqma NCIOjPS27gqNICI8YGGpVWq8S1xUyTjQ/nwtmNiYfYCzvCsr0f1IR1xYnPt5ry+/ EQR0w1Ift+gfwCgE+tYsTqC/q/A5MPJrMVoa9KYW2EKoteiz4U0SWpDuNXLbPeF6 l/OVQGYLpd+5Jkg= 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=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Sat, 15 Feb 2014 13:56:06 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Little cygpath improvement request Message-ID: <20140215125606.GM2246@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <111910987 DOT 20140214222230 AT mtu-net DOT ru> <52FE6397 DOT 5010105 AT cygwin DOT com> <187072112 DOT 20140214234339 AT mtu-net DOT ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C8M3rclghDj+srEw" Content-Disposition: inline In-Reply-To: <187072112.20140214234339@mtu-net.ru> User-Agent: Mutt/1.5.21 (2010-09-15) --C8M3rclghDj+srEw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 14 23:43, Andrey Repin wrote: > Greetings, Larry Hall (Cygwin)! >=20 > > On 2/14/2014 1:22 PM, Andrey Repin wrote: > >> Greetings, All! > >> > >> I would like to request a small functional change for cygpath. > >> In the event of empty given path argument (i.e. `cygpath -ml ""') sile= ntly > >> return an empty result without error message. > >> This would greatly simplify wrapper scripts. >=20 > > Why isn't redirecting the message to /dev/null not sufficient, something > > like this (bash syntax)? >=20 > Because it'll require creating a redirection? And this kind of redundant > inserts blurring the code. > Returning a non-zero exit code would suffice for debugging purposes. >=20 > > cygpath -ml "" >/dev/null 2&>1 >=20 > Err, not > /dev/null !!! :D dos_path=3D$( [ -n "${posix_path}" ] && cygpath -ml "${posix_path}" ) ? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --C8M3rclghDj+srEw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS/2PmAAoJEPU2Bp2uRE+gbQEP/0zHBP3fmWt5Xrm8mGvBTDwk WlrKTuTWgDVjbjHMsVMeu4lPqahVm83bHE83zcybuWYW7wdqPdBJjc+RAakIIX0h sJiUpCDh1qBuDRg/49sUIwbWawYnaWkohwOdPAXU00M5KBE6CN42hH0imy71QAJj bIspk5FQaoaakSo9GfAmVHqakK+YfHgdzezVGHzhX4/kQ+sTpVNCUhUDn6qXUTD6 9GqigCH5B/UQ9fJRvXZva1yRfkjPctq4J7fWyw5BzuzajYnjgawE1ujF9DMCSJcY bOzFv+koCPCSFN0icoxxxfDY/RP1SEDy3IabX2P1xP+zP+Ymj1F6koWC1S7BLe7/ 24kYh2h3Q4wY2vwkyZerSccMObF4EQFfrkVwfILHRxr21/tUoEooWMaEflddRWRl j4Iajxvzz7a0jOUb9vpFvtqC1g/Ug24aQhtCI7F0LWnDOGo1BN/LbuZk1+H8h25v YnjNfYjCdAKu/8lmDIl5Csd5RfmIlR1FmJvZbrPjHzrS81KWpKvbwGWkNQ2q3HvA J3z/WEMiCTrWU0/J2rdHbOa7jjjsf2PeTC3n7GGQ9sfUZ5DfH/91AYNEu5hryGrB +TXqWPiimdTXQbqODyPVV9RGvftUufPnAkUZP8DQFOscObuYU9WiOajNve8uimQg TiFrKo4TvwTYEHjKKWoR =tiss -----END PGP SIGNATURE----- --C8M3rclghDj+srEw--