This is the mail archive of the cygwin 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]
Other format: [Raw text]

bc version has issue with \r when run from cmd


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


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