Direct/efficient way to chop off trailing \n

Jim Garrison
Wed Oct 1 22:50:00 GMT 2014

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.
>... 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 (
PGP Keys at RSA 0x04B73B7F DH 0x70738D88

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list