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:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=bYcHENQLzZ1BjjhN A3dB+NTcEjguAuhfogJan3I+RtG5En8YHENF0KggJTjLUv5C2q7er4B2xq5VT4Sg qpu4We3IHGAakcOuy0lOr3NkdBxz8Ou/47gFK0Surwc9Bxp19+n7f8ckBL5l8STJ qNdr5CcCSYXnc00grnO3Af2Pjzk= 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:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wl2Cp/d0iZAmO+27oCCZez AAA/g=; b=sciZWrPb2wJr9fsUuPEDeHsS0AvCjxPbBW4tekyDUJfJBQVKRUmLav mlfUzkz77RG4Zf2oaveSY9CdLw8qDRE8bb62LIzyqhVAencKnIbefJQTPzayugSA w587YrapfZJF2eOSiq5WUMfeqFe0si4vHrAg3HjxvwReCOsRVEjiY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.jhmg.net Message-ID: <542C854D.3050001@jhmg.net> Date: Wed, 01 Oct 2014 15:50:53 -0700 From: Jim Garrison Reply-To: jhg AT acm DOT org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Direct/efficient way to chop off trailing \n References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 10/1/2014 2:52 PM, Paul.Domaskis wrote: > Running bash in a Windows environment, I often find the need to > generate a full Windows path to a file so that I can access the file > from a Windows app. [snip] >... but it does remove the trailing \n which chokes up > Windows. Sounds like cygpath needs a "-n" option which eliminates the trailing newline. -- Jim Garrison (jhg AT acm DOT org) PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88 -- 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