This is the mail archive of the
cygwin
mailing list for the Cygwin project.
bc version has issue with \r when run from cmd
- From: dapiot holmp <dapiotholmp at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 20 Oct 2016 05:52:59 +0100
- Subject: bc version has issue with \r when run from cmd
- Authentication-results: sourceware.org; auth=none
the version of bc that comes with cygwin, is bc 1.06.95 it works
fine from within the cygwin environment, but from cmd it doesn't
process \r
C:\cygwin\bin>echo 5+4|.\bc
(standard_in) 1: illegal character: ^M
C:\cygwin\bin>
C:\cygwin\bin>echo 5+4|tr -d '\r'|.\bc
9
C:\cygwin\bin>
Whereas I notice that Gow uses 1.06
And that does work with \r in cmd
C:\Program Files (x86)\Gow\bin>.\bc -v
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 F
C:\Program Files (x86)\Gow\bin>
And it works fine with \r
C:\Program Files (x86)\Gow\bin>echo 5+4|.\bc
9
C:\Program Files (x86)\Gow\bin>
--
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