Cygwin 1.7 - backquoting, carriage returns and the removal of binmode
Ryan Dortmans
ryandort.cygwin@gmail.com
Thu Dec 17 23:46:00 GMT 2009
Hi,
I have been having issues with backquoting DOS (text mode) programs in
Cygwin 1.7. For example, for the following command:
echo `example-prog` aaa
I would expect output to be:
hello world aaa
However, the carriage return is being including in the output, resulting in:
aaalo world
This issue has been raised before in the mailing lists, with the
solution being to set the CYGWIN environment variable to include
"nobinmode". This option has been removed in 1.7. I have tried
overriding the root mount (plus /usr/bin and /usr/lib) to be in text
mode with no change. What is the 1.7 equivalent workaround for this
issue? I would rather not litter my scripts with " | tr -d '\r'".
Cheers,
Ryan Dortmans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 63179 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091217/f4393914/attachment.obj>
-------------- next part --------------
--
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
More information about the Cygwin
mailing list