This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Little cygpath improvement request
- From: m0viefreak <m0viefreak dot cm at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 16 Feb 2014 06:40:05 +0100
- Subject: Re: Little cygpath improvement request
- Authentication-results: sourceware.org; auth=none
- 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> <2826041 dot 20140216062749 at yandex dot ru>
I'm not exactly sure what you are trying to accomplish with that patch,
but it looks to me as if everything you want is already present:
cygpath --help
states
-i, --ignore ignore missing argument
which outputs nothing if you pass it an empty argument (or even without
any further argument at all).
Isn't that ( cygpath -mli "$possibly_empty_var" ) what you need?
--
m0vie
--
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