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: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Fri, 26 Oct 2001 23:33:33 +0200 From: Corinna Vinschen To: cygwin-apps AT cygwin DOT com Subject: Re: change default behavior of 'read' builtin in ash Message-ID: <20011026233333.I7622@cygbert.vinschen.de> Mail-Followup-To: cygwin-apps AT cygwin DOT com References: <2180829368 DOT 20011026164918 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <2180829368.20011026164918@logos-m.ru>; from deo@logos-m.ru on Fri, Oct 26, 2001 at 04:49:18PM +0400 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 :) There's a problem with that patch. At one point it removes the `#ifndef SMALL' while at another important point it leaves the original SMALL handling in the code: #ifdef SMALL nextopt(""); #else while ((i = nextopt("erp:t:")) != '\0') { [...] Did you compile ash w/o -DSMALL for Cygwin? The Cygwin version is compiled that way. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.