www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/10/27/12:18:05

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Sat, 27 Oct 2001 20:16:49 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin-apps AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <150279679107.20011027201649@logos-m.ru>
To: Corinna Vinschen <cygwin-apps AT cygwin DOT com>
Subject: Re: change default behavior of 'read' builtin in ash
In-Reply-To: <20011026233333.I7622@cygbert.vinschen.de>
References: <2180829368 DOT 20011026164918 AT logos-m DOT ru>
<20011026233333 DOT I7622 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0

Hi!

Saturday, 27 October, 2001 Corinna Vinschen cygwin-apps AT cygwin DOT com wrote:

CV> On Fri, Oct 26, 2001 at 04:49:18PM +0400, egor duda wrote:
>> Hi!
>> 
>>   currently 'read' builtin in ash requires -e option to make it treat
>> backslashes as escapes. current BSD ash and SUSv2 do this by default
>> and use -r option to turn this special treatment off. patch attached.
>> 
>> after this patch, libiberty testsuite passes all test on cygwin :)

CV> There's a problem with that patch.  At one point it removes the
CV> `#ifndef SMALL' while at another important point it leaves the
CV> original SMALL handling in the code:

CV>         #ifdef SMALL
CV>                 nextopt("");
CV>         #else
CV>                 while ((i = nextopt("erp:t:")) != '\0') {
CV>                 [...]

CV> Did you compile ash w/o -DSMALL for Cygwin?  The Cygwin version is
CV> compiled that way.

with -DSMALL backslashes are always treated by default, i.e., as
escapes. no '-r' option available. when as compiled without -DSMALL,
user can supply -r option to 'read' and make it process input as
"raw". i don't see anything wrong here.

as for compiling w/o -DSMALL, i can't even compile it because cd.c
includes show.h when compiled without -DSMALL and this file is missing
from src package.

i think i can add choice of compiling with/without -DSMALL as
configure option, adding, say, --enable-small option to configure

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19

- Raw text -


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