$PWD completion wrong

2011-10-21 Thread koenig
Configuration Information [Automatically generated, do not change]:
Machine: amd64-linux
OS: suse114
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='amd64-linux' 
-DCONF_OSTYPE='suse114' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' 
-DCONF_VENDOR='unknown' 
-DLOCALEDIR='/scr/os2-suse114/koenig/bash-4.2.8-1/PREINSTALL//usr/local//share/locale'
 -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O2 
-D_LARGE_FILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
uname output: Linux atuin 2.6.37.6-0.7-default #1 SMP 2011-07-21 02:17:24 +0200 
x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

Bash Version: 4.2
Patch Level: 8
Release Status: release

Description:
echo $PWD/

expands to
 
echo \$PWD/

which is *wrong* (and does not work neither for futher file name completion nor 
for calling whatever with the real directory path as argument).

same happens with 4.2.10 (opensuse 12.1 beta-test), but works fine with 
bash-3.* and bash-4.1 

for my opensuse bug report see

https://bugzilla.novell.com/show_bug.cgi?id=725657


Repeat-By:

typeecho $PWD/

-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 





Re: $PWD completion wrong

2011-10-21 Thread Chet Ramey
> Machine Type: x86_64-unknown-linux-gnu
> 
> Bash Version: 4.2
> Patch Level: 8
> Release Status: release
> 
> Description:
>   echo $PWD/
> 
> expands to
>  
>   echo \$PWD/
> 
> which is *wrong* (and does not work neither for futher file name completion 
> nor for calling whatever with the real directory path as argument).
> 
> same happens with 4.2.10 (opensuse 12.1 beta-test), but works fine with 
> bash-3.* and bash-4.1 
> 
> for my opensuse bug report see
> 
>   https://bugzilla.novell.com/show_bug.cgi?id=725657

Yes.  Look at the bug-bash list archives for extensive discussion on
this topic.  There will be several changes and fixes in the next bash
release to address this and other completion issues.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: $PWD completion wrong

2011-10-21 Thread Harald Koenig
Hi Chet,

On Oct 21, Chet Ramey wrote:

> Yes.  Look at the bug-bash list archives for extensive discussion on
> this topic.  There will be several changes and fixes in the next bash
> release to address this and other completion issues.

thanks for your quick reply!  I found/read

   Subject: bash tab variable expansion question? - msg#00273

is there any other thread ?


more important: is there any patch available to get back to the good old 
behaviour ?

opensuse is very close to release 12.1 (they're more or less on RC1)
and I (not related to *suse*) would be *very* happy if they'd ship
a litte-bit-less-broken bash if possible;-)

btw: where can I find decent bash development sources ?

 http://www.gnu.org/s/bash/ 

points to 

 http://savannah.gnu.org/projects/bash/

but there, the CVS is emmpty and 

 http://savannah.gnu.org/git/?group=bash

 git://git.savannah.gnu.org/bash.git

stops at 2009-09-12, nothing newer:-(



thanks for any pointer to a revert patch...

Harald Koenig
-- 
"I hope to die  ___   _
before I *have* to use Microsoft Word.",   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.<_/  /  /OOO\
\  \/OOO\
  \ O|//
Harald Koenig  \/\/\/\/\/\/\/\/\/
science+computing ag//  / \\  \
koe...@science-computing.de^   ^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 





Re: $PWD completion wrong

2011-10-21 Thread Chet Ramey
On 10/21/11 2:42 PM, Harald Koenig wrote:
> Hi Chet,
> 
> On Oct 21, Chet Ramey wrote:
> 
>> Yes.  Look at the bug-bash list archives for extensive discussion on
>> this topic.  There will be several changes and fixes in the next bash
>> release to address this and other completion issues.
> 
> thanks for your quick reply!  I found/read
> 
>Subject: bash tab variable expansion question? - msg#00273
> 
> is there any other thread ?
> 
> 
> more important: is there any patch available to get back to the good old 
> behaviour ?

If you read further in that thread, you'll find a message I sent out on
9/2 containing a patch that adds a `direxpand' option.  The new option
is intended to restore the bash-4.1 behavior of performing word expansion
on variables in directory names when completing.  It works pretty well;
there are a couple of rough edges that will be worked out.

Look for <4e612f5b.5040...@case.edu>.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: $PWD completion wrong

2011-10-21 Thread Harald Koenig
On Oct 21, Chet Ramey wrote:

> On 10/21/11 2:42 PM, Harald Koenig wrote:
> 
> If you read further in that thread, you'll find a message I sent out on
> 9/2 containing a patch that adds a `direxpand' option.  The new option

aaah! the web mailing list browswer didn't step from february to march with 
"thread next" :-((( 
thanks!!

> is intended to restore the bash-4.1 behavior of performing word expansion
> on variables in directory names when completing.  It works pretty well;
> there are a couple of rough edges that will be worked out.
> 
> Look for <4e612f5b.5040...@case.edu>.

yes, that's what I was looking for!  
a very quick first test with 4.2.8 and "shopt -s direxpand" looks like 
that's what I'll use for now!

I'll forward your hints to that mail/patch to suse and see what they'll do;-)


thanks a lot for your quick help and solution!!

Harald Koenig
-- 
"I hope to die  ___   _
before I *have* to use Microsoft Word.",   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.<_/  /  /OOO\
\  \/OOO\
  \ O|//
Harald Koenig  \/\/\/\/\/\/\/\/\/
science+computing ag//  / \\  \
koe...@science-computing.de^   ^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196