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: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Sun, 16 Feb 2014 22:38: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> <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> <20140216120042 dot GP2246 at calimero dot vinschen dot de> <40596392 dot 20140216184131 at yandex dot ru> <20140216151107 dot GT2246 at calimero dot vinschen dot de>
- Reply-to: cygwin at cygwin dot com
Greetings, Corinna Vinschen!
>> > 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???
>>
>> Because the message serves no purpose in every use case I could think about.
>> That, aside the fact it needs to create a redirection.
>>
>> > NATIVE=$(cygpath -ml "$2" 2>/dev/null)
> And what's the problem with redirections?
> I fail to see the big difference between adding a redirection
> compared to adding an option character.
I think we're nearing the border of the forest here. (The one that you can't
see behind trees.)
I understand that you see no problem in doing additional work at creating a
redirection, because computers are so powerful nowadays, resources are so
plentiful, nobody care... but I, myself, prefer the "it's just works" approach
when it comes to program development. Or in other words, "sensible defaults
are better, than a lot of options."
In this case, I'm in for removing the message AND option as both are redundant.
P.S.
And it's not the first time I'm fighting the case of expected usage pattern
against real-life applications.
The message is "generally useful", but such case is from artificial breed of
generic cases, that does not survive in the wild.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 16.02.2014, <22:25>
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