public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: bc version has issue with \r when run from cmd
@ 2016-10-23 11:16 dapiot holmp
  2016-10-24  6:13 ` Andrew Schulman
  0 siblings, 1 reply; 9+ messages in thread
From: dapiot holmp @ 2016-10-23 11:16 UTC (permalink / raw)
  To: cygwin

>From: "L. A. Walsh" <cygwin at tlinx dot org>
>Date: Sat, 22 Oct 2016 15:52:42 -0700

To L.A. Walsh.

I understand all that but what i'm saying is that version 1.06  (not
1.06.95, which cygwin is using, but 1.06, which Gow uses), So, version
1.06   Doesn't have a problem with the fact that cmd sends a \r   So,
if one doesn't want to call it a bug,  then one can call it a lost
feature, useful feature of 1.06 (allowing bc to conveniently also be
used from cmd), and that beneficial flexible feature was lost in
1.06.95

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: bc version has issue with \r when run from cmd
@ 2016-10-24 11:09 dapiot holmp
  2016-10-24 15:30 ` Andrew Schulman
  0 siblings, 1 reply; 9+ messages in thread
From: dapiot holmp @ 2016-10-24 11:09 UTC (permalink / raw)
  To: cygwin

I understand (from a helpful email to me), that the issue/difference
is apparently between ports of bc(whoever made the ports), rather than
the bc version..

I see from andrew,  links to the linux versions of bc on which the
windows ports are based on.

Does whoever made the windows port e.g. for the gow one or for the
cygwin one, make their windows ports open source, and  if so, then
does anybody have a link to those?

Thanks

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* bc version has issue with \r when run from cmd
@ 2016-10-20  7:02 dapiot holmp
  2016-10-23  1:45 ` L. A. Walsh
  0 siblings, 1 reply; 9+ messages in thread
From: dapiot holmp @ 2016-10-20  7:02 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-25 21:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-23 11:16 bc version has issue with \r when run from cmd dapiot holmp
2016-10-24  6:13 ` Andrew Schulman
2016-10-24 12:17   ` Duncan Roe
  -- strict thread matches above, loose matches on Subject: below --
2016-10-24 11:09 dapiot holmp
2016-10-24 15:30 ` Andrew Schulman
2016-10-25 21:14   ` L. A. Walsh
2016-10-26  5:12     ` Brian Inglis
2016-10-20  7:02 dapiot holmp
2016-10-23  1:45 ` L. A. Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).