delorie.com/archives/browse.cgi | search |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=BLcACdK7wqXzTjxxujrvlbfgV/cfAVv4UoD/0L96gPl | |
RusDk/9IB4wWMPEk2aFB+ihZNLvhRTUIwRozRjRp/Sm+sctB8q7Om7HYM3+wdm1c | |
VZJXuhrpAjm3auQzyXmkqSC9Y2zKLMofUQKWwZ4O1Asd6Vr5OPUggatxVLXwyNmQ | |
= | |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=7lGTzvXMHtRiVF/SlsFbbFSVcRk=; b=PIDVTzpmLLbVZpIbq | |
y+It//VlF2hoy1GZU0koxzskKnOvnLBEIvnkZEEOumAI4IBqLqvx5x4wrKV/W+gl | |
GWvp6W12dFWQRrakljp2LqKHFpRNeQihtUSetNYKZ1iC7t5MyMjf2l74CdjeIyn+ | |
9p6btZYUDNX/2BhDqkv5938zgo= | |
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=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=subsystem, schulman, Schulman, H*i:sk:fbur0c1 |
X-HELO: | Ishtar.sc.tlinx.org |
Message-ID: | <580E9CA6.6030606@tlinx.org> |
Date: | Mon, 24 Oct 2016 16:43:34 -0700 |
From: | "L. A. Walsh" <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bc version has issue with \r when run from cmd |
References: | <CAKBM6-OEErLcF+2DEbvqHE6Ov-ohwLWZzi6vZVz232cgJBYiJQ AT mail DOT gmail DOT com> <fbur0c1suma1ia2kvldfa01iavd4rnb8lb AT 4ax DOT com> |
In-Reply-To: | <fbur0c1suma1ia2kvldfa01iavd4rnb8lb@4ax.com> |
X-IsSubscribed: | yes |
Andrew Schulman wrote: >> 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? > > The Cygwin bc package uses the bc 1.06.95 source that I linked to, plus some > patches. You can download them all by checking the "Src" box for bc in setup, > then looking in /usr/src/bc-1.06.95-2.src/. > > I doubt that anyone here knows about the Gow bc package. --- I was going to ask: what is 'gow'? It seems like it is a program compiled to run in the windows subsystem? If that's the case, they likely created a version of 'bc' to run under the windows subsystem. As may be obvious now, you need to use a command shell that is compatible with whatever subsystem you compile 'bc' under. What line ending 'bc' uses is dependent on what subsystem it was compiled for. The one in cygwin is designed for use in cygwin and apparently the one included with 'gow' (whatever that is), is compiled for use from windows. "bc", and most utilities ported from *nix or open-source systems, don't care and don't look at line endings -- they expect "\n" to be the "end-of-line" indicator. On *unix* and *mac* systems it is 1 character long, but on windows, it's 2 characters (<CR>+<LF>). The utilities would get alot more confused if they had to accommodate both, so in general they only look at "\n" and rely on however they were built to indicate what that translates to in the surrounding environment. -l -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |