This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MS-DOS CR/LF compatibility in $() and ``?


Earnie Boyd wrote:
> 
> --- Pontus Lidman <pontus@mathcore.com> wrote:
> > It seems that when the output of a command contains MS-DOS newlines
> > (CR+LF), these are not stripped from the end of the output when command
> > substitution is done.
> 
[...]
> If I'm correct, then you'll need
> to filter the file to remove the \r just as you would on any UNIX environment

ie: run it through `tr'.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]