Re: echo "enhancement" leads to confused legacy script tools...

2006-04-05 Thread Linda W
Chet Ramey wrote: The remaining consideration is whether or not there's a significant body of scripts out there that rely on the current behavior. If there isn't, I would strongly consider the change to require a leading `0' in octal constants. I don't think that \x introducing hex constants is

Re: echo "enhancement" leads to confused legacy script tools...

2006-04-01 Thread Stepan Kasal
Hello, On Fri, Mar 31, 2006 at 01:28:37PM -0500, Chet Ramey wrote: > [...] I don't think that \x introducing hex constants > is as big a problem (it may not be a problem at all). well, that makes `\x' yet another sequence which can surprise the user: it changes to something else, _if_ it is fol

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-31 Thread Chet Ramey
> I'm willing to try the CVS versions of autoconf later on, but > can't promise when I'll get to it. I can confirm, though, that > the bug I'm running into only happened when I rebuilt bash and > specified the --enable_xpg_default option. You would have seen the same results had you specifi

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-28 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paul Eggert on 3/20/2006 11:58 PM: >>> There's a little history here. POSIX 1003.2-1992 said that echo has >>> implementation-defined behavior if given any options, or if any >> Are you sure about "any option"? The current spec only talk

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-27 Thread Ralf Wildenhues
Hello everybody, * Linda W wrote on Mon, Mar 20, 2006 at 10:16:44PM CET: > Henrik Nordstrom wrote: > >Note: As far as I can tell the echo tests in the configure script > >generated by autoconf-2.59 tests for quite many things but not \digit as > >far as I can tell. I have not yet looked into the C

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-27 Thread Paul Eggert
Andreas Schwab <[EMAIL PROTECTED]> writes: >> There's a little history here. POSIX 1003.2-1992 said that echo has >> implementation-defined behavior if given any options, or if any > > Are you sure about "any option"? The current spec only talks about -n. Yes, I have the printed copy of POSIX 1

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-27 Thread Linda W
Henrik Nordstrom wrote: Note: As far as I can tell the echo tests in the configure script generated by autoconf-2.59 tests for quite many things but not \digit as far as I can tell. I have not yet looked into the CVS version. Regards Henrik --- Sorry, haven't been involved too much on t

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Andreas Schwab
Linda W <[EMAIL PROTECTED]> writes: > I believe bash is broken in regards to using "any" number after > "\" as an octal value. The shell specifications require the leading > zero for an octal constant The specification does not _require_ it, it allows it. Any other use of the backslash results

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Henrik Nordstrom
tis 2006-03-21 klockan 17:32 +0100 skrev Ralf Wildenhues: > To finish this up for squid: Please install the patches below (it'd be > nice if you could feed back the cppunit related ones to their upstream), > install the file lib/cppunit-1.10.0/config/ax_prefix_config_h.m4 from > http://autoconf-a

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Tue, Mar 21, 2006 at 05:02:49PM CET: > > The issue is not in Autoconf, but in the macro AC_CREATE_PREFIX_CONFIG_H [...] > I will look into that, and post an update. To finish this up for squid: Please install the patches below (it'd be nice if you could feed back the c

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Henrik Nordstrom
sön 2006-03-19 klockan 12:57 -0800 skrev Paul Eggert: > Autoconf deals with shells that do not conform to XSI, and where the > results are implementation-defined if there's a backslash anywhere in > the string, so to some extent this point is moot for Autoconf (though > it's undeniably a portabili

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Linda W
Henrik Nordstrom wrote: lör 2006-03-18 klockan 14:15 -0800 skrev Linda W: Bash added the "feature" to allow dropping of the leading "0", accepting strings: "\0nnn", "\nnn", and "\xHH". I'm guessing that most bash users run in a shell that has expansion turned off by default or this wo

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-23 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Tue, Mar 21, 2006 at 05:02:49PM CET: > FWIW, are there _any_ other shells that do not output \1 with > echo "\\1" > except for bash-3.0-with-xpg-echo? Ouch. Never mind that stupid question, please. ___ Bug-bash mailing lis

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-20 Thread Andreas Schwab
Paul Eggert <[EMAIL PROTECTED]> writes: > Andreas Schwab <[EMAIL PROTECTED]> writes: > >> But note that bash interprets -n as an option, which is not compliant with >> XSI. > > Bash doesn't claim conformance to XSI, so that's OK as far as Bash is > concerned. I understand that. It doesn't even c

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-20 Thread Chet Ramey
> Paul Eggert <[EMAIL PROTECTED]> writes: > > > Hence Bash can interpret \123 as an octal escape as well, if it so > > chooses, and still conform to POSIX+XSI. > > But note that bash interprets -n as an option, which is not compliant with > XSI. Bash claims XSI conformance when in posix mode wit

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-20 Thread Paul Eggert
Linda W <[EMAIL PROTECTED]> writes: > I believe bash is broken in regards to using "any" number after > "\" as an octal value. The shell specifications require the leading > zero for an octal constant I'm afraid this is backwards. This POSIX+XSI requirement constrains applications, not implemen

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-20 Thread Paul Eggert
Andreas Schwab <[EMAIL PROTECTED]> writes: > But note that bash interprets -n as an option, which is not compliant with > XSI. Bash doesn't claim conformance to XSI, so that's OK as far as Bash is concerned. Autoconf (and I assume Squid) is supposed be portable to all POSIX hosts, not merely POS

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-20 Thread Andreas Schwab
Paul Eggert <[EMAIL PROTECTED]> writes: > Hence Bash can interpret \123 as an octal escape as well, if it so > chooses, and still conform to POSIX+XSI. But note that bash interprets -n as an option, which is not compliant with XSI. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-19 Thread Paul Eggert
Henrik Nordstrom <[EMAIL PROTECTED]> writes: > sön 2006-03-19 klockan 12:57 -0800 skrev Paul Eggert: > >> Autoconf deals with shells that do not conform to XSI, and where the >> results are implementation-defined if there's a backslash anywhere in >> the string, so to some extent this point is moo