From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23773 invoked by alias); 1 Oct 2014 23:35:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23763 invoked by uid 89); 1 Oct 2014 23:35:14 -0000 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 Received: from smtpback.ht-systems.ru (HELO smtpback.ht-systems.ru) (78.110.50.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 01 Oct 2014 23:35:11 +0000 Received: from [77.50.25.68] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1XZTQH-0007x9-Pk ; Thu, 02 Oct 2014 03:35:05 +0400 Received: from [192.168.1.10] (HELO daemon2) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 01 Oct 2014 23:21:52 -0000 Date: Wed, 01 Oct 2014 23:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1576090815.20141002032152@yandex.ru> To: Paul.Domaskis , cygwin@cygwin.com Subject: Re: Direct/efficient way to chop off trailing \n In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00019.txt.bz2 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