Re: Assignments preceding "declare" affect brace and pathname expansion.

2013-04-01 Thread Chet Ramey
On 3/28/13 1:05 AM, Dan Douglas wrote: > On Tuesday, March 26, 2013 08:33:52 PM Chet Ramey wrote: > > Thank you. I'm familiar with the declaration commands. It's issue 7, not TC1. Actually, I don't think it's either. I think we're going to have to wait until issue 8 for these. > Are you saying

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Dan Douglas
On Monday, April 01, 2013 03:32:16 PM Dave Rutherford wrote: > On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote: > > > Description: > > > Currently it seems to be impossible to e.g. print "-n" with the builtin > > > echo witout any extra characters. > > > > You shoul

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Eric Blake
On 04/01/2013 01:32 PM, Dave Rutherford wrote: > On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote: >>> Description: >>> Currently it seems to be impossible to e.g. print "-n" with the >>> builtin >>> echo witout any extra characters. >> >> You should use printf instea

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Chet Ramey
On 4/1/13 3:32 PM, Dave Rutherford wrote: >> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html says: >> >> The echo utility shall not recognize the "--" argument in the manner >> specified by Guideline 10 of XBD Utility Syntax Guidelines ; "--" >> shall be recognized

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Dave Rutherford
On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote: > > Description: > > Currently it seems to be impossible to e.g. print "-n" with the > > builtin > > echo witout any extra characters. > > You should use printf instead. The echo command is a historical artifact > wh

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Greg Wooledge
On Mon, Apr 01, 2013 at 03:16:07PM +0300, Hemmo Nieminen wrote: > Description: > Currently it seems to be impossible to e.g. print "-n" with the > builtin > echo witout any extra characters. You should use printf instead. The echo command is a historical artifact which cannot be

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Bob Proulx
Hemmo Nieminen wrote: > Description: > Currently it seems to be impossible to e.g. print "-n" with > the builtin echo witout any extra characters. Correct. That is the long standing legacy behavior. The behavior was pervasive and non-portable during many years and the existing wi

Re: [PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Eric Blake
On 04/01/2013 06:16 AM, Hemmo Nieminen wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-g

[PATCH] Adding support for '--' in builtin echo's option parsing.

2013-04-01 Thread Hemmo Nieminen
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/local

Re: Unexpected behavior of single quotes when used in the patsub PE.

2013-04-01 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/20/13 5:56 PM, Eduardo A. Bustamante López wrote: > Bash Version: 4.3 > Patch Level: 0 > Release Status: alpha > > Description: > The rules for escaping single quotes inside the > pat and rep arguments are somehow fuzzy. There's a difference

Re: [patch] colored filename completion

2013-04-01 Thread Raphaël Droz
On Sun, Mar 31, 2013 at 02:29:22PM +0100, Gavin Smith wrote: > I wondered if there was any interest in incorporating Raphaël Droz's > patches to add colour to tab suggestions feature has been considered: it was implemented (not really "merged") in 5a3187363 ( = queued for 4.3 ) * http://git.sava