This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Direct/efficient way to chop off trailing \n
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Paul.Domaskis <Paul dot Domaskis at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 2 Oct 2014 03:21:52 +0400
- Subject: Re: Direct/efficient way to chop off trailing \n
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20141001T235147-60 at post dot gmane dot org> <loom dot 20141002T011040-272 at post dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
Greetings, Paul.Domaskis!
> Jim, I think you're right. cygpath could benefit a lot from a -n
> switch to suppress the new line. From google, however, it's actually
> just li'l olde me that would benefit as no one else seems to have the
> want for it.
That's just happened to be opposite case of common usage, I suppose.
Most people either use Cygwin tools in isolation, or use Cygwin tools from
Windows tools.
The opposite is rare, and mostly boils down to scripting, where you naturally
use $(cygpath ...) to produce desired results.
> So I can see why such a switch has never been developed.
> It's probably only needed for cygwin users, as it is the *unixy crowd
> that uses both Windows & *nix at the same time.
The cygpath tool is Cygwin specific :) So there's no contradiction to
your words.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 02.10.2014, <3:17>
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