This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: change default behavior of 'read' builtin in ash


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@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]