This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Little cygpath improvement request
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: "Larry Hall (Cygwin)" <cygwin at cygwin dot com>
- Date: Fri, 14 Feb 2014 23:43:39 +0400
- 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>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Larry Hall (Cygwin)!
> 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 ""') silently
>> return an empty result without error message.
>> This would greatly simplify wrapper scripts.
> Why isn't redirecting the message to /dev/null not sufficient, something
> like this (bash syntax)?
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.
> cygpath -ml "" >/dev/null 2&>1
Err, not > /dev/null !!! :D
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 14.02.2014, <23:41>
Sorry for my terrible english...
--
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