[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readline expansion: 'cp $v/<TAB>' -> 'cp \$v/' (no expansion) - why?
From: |
Jason Vas Dias |
Subject: |
Re: readline expansion: 'cp $v/<TAB>' -> 'cp \$v/' (no expansion) - why? |
Date: |
Sat, 7 Jul 2012 16:39:59 +0100 |
Sorry, I tried 4.2-29(2) at home and it DOES correctly complete
'$SRC/<TAB>' - of
courrse, it helps if $SRC contains the name of an existing directory,
which it did not at work.
Thanks ! a most interesting list .
Next Question :
- any plans to allow us to export array or associative store
variables ? ie. represent them in *environ passed to programs
with an integration with glibc "getenv()" to support this ?
Thanks & Regards,
Jason
On Thu, Jul 5, 2012 at 12:59 PM, Jason Vas Dias
<jason.vas.dias@gmail.com> wrote:
> hi Eric - thanks for your response, but bash-4.2.29(2), just built from
> latest patches from gnu on x86_64 ubuntu, does NOT
> "restore the old behavior" , but now refuses to tab-expand at
> all - 'cat $SRC/<TAB>' on the command line still produces no
> output. Is there some option I need to give to enable it? Thanks!
>
> On 5 Jul 2012 13:24, "Eric Blake" <eblake@redhat.com> wrote:
>>
>> On 07/05/2012 04:58 AM, Jason Vas Dias wrote:
>>
>> > Now it changes the input string into
>> > 'less \$SRC/' and prevents tab expansion
>> > as would be done without use of any variables.
>> > Would anyone know how to restore the old behavior
>> > with bash 4.2.2 + readline 6.2 (linux ubuntu 12.04) ?
>>
>> Yep - upgrade to bash 4.2.29 (that is, patchlevel 2 is missing the fix
>> in patchlevel 29 that restores the behavior you want).
>> ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash42-029
>>
>> This topic comes up frequently on this list.
>>
>> --
>> Eric Blake eblake@redhat.com +1-919-301-3266
>> Libvirt virtualization library http://libvirt.org
>>
>>
>>
>