delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/01/19:35:30

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=WZmASrty9unp/2/3
k+YtP4kMfqiVwP+epNg8qWLtJ8Xk+WVS89I3256UTosBLFF1mq/k5jhRIAsgdntb
AEgiJpPD3nxPvpVUFgTfq0AsDItv8lGVX4lLYauvgHR2TTd3Ygy+91+hRBWTNsbd
cPNrxKaDiTHXHNCJhInAc4aZCe0=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=0aoViOBI6IvYWvZXRAXcS9
y9XjA=; b=N1DFlWMoTL01iIz7FtSbDDRApwgzQspY1iQ/6jApQMS/GP6q/eatCk
igj5yqHp3uGXjL1n76Q8WswVuB1G/nmRZd1HmWEWdcMzNo0oRVkaGyM9mSN93uCk
K+BPNCisVGG3GP0jUEAkhm4zv6nJWUm24+DfuzUjMSmJw0qYgfwnc=
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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Thu, 2 Oct 2014 03:21:52 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1576090815.20141002032152@yandex.ru>
To: "Paul.Domaskis" <Paul DOT Domaskis AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Direct/efficient way to chop off trailing \n
In-Reply-To: <loom.20141002T011040-272@post.gmane.org>
References: <loom DOT 20141001T235147-60 AT post DOT gmane DOT org> <loom DOT 20141002T011040-272 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019