incorrect brace expansion

2006-01-28 Thread Tim Waugh
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -D_GNU_SOURCE 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=pentium4 
-fasynchronous-unwind-tables
uname output: Linux gene.surrey.redhat.com 2.6.13-1.1597_FC5 #1 Thu Oct 6 
02:13:06 EDT 2005 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 3.1
Patch Level: 5
Release Status: release

Description:
This --> a-{b{d,e}}-c <-- gets wrongly expanded.  There is one
brace expansion expression there, surrounded by braces not
formating a brace expansion expression.

Repeat-By:
echo a-{b{d,e}}-c

Should get: a-{bd}-c a-{be}-c
but actually get: a-bd-c a-be-c

Original bug report:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=179081

Tim.
*/


pgpb65VgLLPb2.pgp
Description: PGP signature
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Output redirection?

2006-01-28 Thread Yuri Karlsbrun
Hello,

I, probably, need bash-help mailing list, but I could not find it.

Here is the bash script fragment:
LOG_FILE="./logfile"
...
>$LOG_FILE

I supposed that the statement above redirects stdout to the logfile.
But the following 'echo' statement prints on the screen. The logfile is
opened. What is the real purpose of the statement above?

Thanks,
Yuri





___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: Shell completion not honouring escaped characters

2006-01-28 Thread Chet Ramey
Andrew Parker wrote:
> BASH_VERSION 3.1.1(1)-release
> Running on Fedora Core 5 (test 2)
> 
> Pressing tab on a line with escape characters will ignore, and remove,
> the escaped characters to perform the completion.  For example, pressing
> tab at the end of each of these lines removes the "\" and changes the
> meaning of the line.
> 
>ls \~andy/
>ls \`pwd`/

I believe I can fix this with some code rearrangement, at the cost of
slightly altering the requirements imposed on
rl_directory_completion_hook.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash