delorie.com/archives/browse.cgi | search |
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=Mle8FUG1fuGxrBkqrX/2/j5o1lYozxTJdi/mvW/++fExaNqJ9NDcW | |
YXYnHzh+7HtQtcJlQRlvCyW77ndt01wjd5Ro+9VNPQlv4IJXI0bsIaU7KheodE7J | |
USZ3jNVBWpfWw4RJbmi5s+WFZfZuzK0Rou3XxT6BIltvGhofEcCnN0= | |
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=HYhj3BSHsEV0+c3CcpvkxSyuM98=; b=wpFfZWzRUNhaFTBoS4LAtFp4pq23 | |
nHtejbhPsv1X9tEHHXqjwgoHhh+WqLGXow2wIVa641JGDPHz1naheF5XhFybfphH | |
ZOllkIDUosJjaGAwn54pxZEfrrt+C30Akv35Y5m3qZFLZ3BwO5hUl+9NnyAy9qil | |
M6th39LpB2waD9U= | |
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=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Sun, 16 Feb 2014 13:00:42 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Little cygpath improvement request |
Message-ID: | <20140216120042.GP2246@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> <20140215125606 DOT GM2246 AT calimero DOT vinschen DOT de> <1745533059 DOT 20140215225708 AT mtu-net DOT ru> |
MIME-Version: | 1.0 |
In-Reply-To: | <1745533059.20140215225708@mtu-net.ru> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--4dlmIwqylWgRDx7z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 15 22:57, Andrey Repin wrote: > Greetings, Corinna Vinschen! >=20 > >> >> I would like to request a small functional change for cygpath. > >> >> In the event of empty given path argument (i.e. `cygpath -ml ""') s= ilently > >> >> 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, somet= hing > >> > like this (bash syntax)? > >>=20 > >> Because it'll require creating a redirection? And this kind of redunda= nt > >> 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 >=20 > > dos_path=3D$( [ -n "${posix_path}" ] && cygpath -ml "${posix_path}" ) >=20 > > ? >=20 > I appreciate the effort, bit this even MORE complicating the possible use > case. >=20 > Look, I'm asking for simplification without loosing functionality. > If I NEED to check the path for existence, I would write something to the > extent of I'm getting a bit puzzled. If it's only the message you don't want, then why not just send this message to /dev/null??? NATIVE=3D$(cygpath -ml "$2" 2>/dev/null) > But if I (and the program that I would feed it to) don't care (which is o= ften > the case), the message printed from cygpath doesn't add to functionality.= =20 >=20 > P.S. > I've tried to rebuild it myself, but hit a roadblock. > While trying to rebuild only winsup/utils, this happens That never works. Why don't you just fetch the source archive from the last package and use the cygport file inside? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --4dlmIwqylWgRDx7z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTAKhqAAoJEPU2Bp2uRE+gmGoP/07Qdtrwn/vOuG/O5CDycHVG 0S2KQIYHhYd87anYiSoZ4X9bwzK9PHH9W6lUF84LJ1eFqLgRGotW0rgOZcyodOYG e1kjzAN5+JQk5DuAnNEmtryb6w12gFHqN3RoyDAqWA/RGQSluwyg35tNn1CpPGuj 5/5nAAZXE8zAY58UWq0Gf0wbXpQcKjQD9Joggv+iueFnqFafBwoKw/tz4xlvKI/I bspdn+8hIZoF1jem+4bRiIBpD5NswSvH+E/k0vbkkdDXZTkTSR8ENTQSXmoIgxEf wis8mEUB7T9KoK6hGgaHyZlJ1bFi0Kfw+iLY3+U1ZvfY1fTv0N2LemOtY4kyMPrE ilX0r7igIbHQNHbZoQp3fR2epGTAz+eo0ROr882nzNqZd+fb8lcKKL6CkRsjRLkI tcVsP+PCKIVd2wzkfX6SXFerlO8ZNzxYErDzRXa8Y4rDOwNsmjg+3sSebAqLzeYE pGG/9wqA9Q3dOXN/1J0rCDS+W91BCOoB8l7OBnXKKPE4WpjErK1GmLaySGUhnxxg N88UZgBZ0otyTEXgPDv7jecQL40S0h71VJZVCfodllBam/68cbZ34niOOeB+jRhm hKXqbqi9UKPeybe139dhAjktcrTiR9c2MBLSXFeB+tSN5+S98wsAzt4l36Jiy0Vj Qc8aGfhcDKYPy7N3YxKy =mZnz -----END PGP SIGNATURE----- --4dlmIwqylWgRDx7z--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |