delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/20/00:53:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=XCIKe13RbquYmLXkPsbv9/JjkZJ8b
JBtiUQ7X6DgIgGaHMLwh+RgLpajy1HxoB2+MfTOVuRwh2j3Ir8LYLUiuZgELRki7
012h7J3Gs1+aQOaOooj4OTaQmbXW8fDOJ5NDHV/pvqb4K1Q+erWPKbtgWA4hADrc
PUKa+FhCII1CbY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=/l/1XpQ2iMHAKzKkbciaFHEgjBg=; b=EW1
73gB6wlKuL6chi1hnqq+mGghdAM+clB6+uWrUTmym/JPNKol1MjMTe3WwMlUG23S
mTOlSOxc8i15gOBkAEV9J3ShK4ZIJY53VVsgdJSTvSYMf1oUrvEv3bwjQ76K9ZGS
gf0+aeK34IXhwx62EfwN1A70dRo1jBB8YvIx3Ejg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=1.06, gow
X-HELO: mail-yb0-f181.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6fFky9iZ35rVxU3CsEsda/Yv8uCYMeVVrwlzdonTq0E=; b=jRZlft8fOhGbd2fIM0Khw3zC2RIazKSii7yz/OkVRl9Sgfuetpg1Wy8vc+0EPne4rE Pkdhj0GVFCk45ZI9Ax0KM7LSeWXFKMSnb+zYwvvc7EbeB/W5gj+zU7j+7aKxH4TpXAuB Ha9IjAgqWHlzEpQZvjRReMBp0Y3RTUd+XFdhpRbt3wntReqluDdqrjN0UGvOZnIGqK4l 0EFnzetRZ7J8U808820A3wM6790fgWRQVzObBt+bnugJtSQx3d7NqBRqbnHQokbMDuKz 6yjj06omEJOCvAilwILycyjGo+a7y/CCLWfgPhpq8mAj+qKWaCI4QDhNIyOQOSfmsMa9 4F/g==
X-Gm-Message-State: AA6/9RlFI83kawg7/HHfErdlNy8D3K1ueLbtMe/7o3Geqw6ebEjiyQKoFecOHik8J0BLMqq69h0cAexhcoyssg==
X-Received: by 10.37.87.197 with SMTP id l188mr9718582ybb.184.1476939180451; Wed, 19 Oct 2016 21:53:00 -0700 (PDT)
MIME-Version: 1.0
From: dapiot holmp <dapiotholmp AT gmail DOT com>
Date: Thu, 20 Oct 2016 05:52:59 +0100
Message-ID: <CAKBM6-NDxAPa3+xa48OkQyx3LGFSRKWzbV7j+F=nPJp2W28PhA@mail.gmail.com>
Subject: bc version has issue with \r when run from cmd
To: cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019