Package: bash
Version: 3.1dfsg-9
Severity: minor

Tilde expansion on the command line is very annoying when you don't want
it. The tilde expansion is done anyway if the file /etc/bash_completion
is loaded (root account does not load it). For testing, I just modified 
that file to work for me. Beware that modification may break others
stuff in the completions.

file /etc/bash_completion around line 324
_expand()
{
        [ "$cur" != "${cur%\\}" ] && cur="$cur\\"

        # expand ~username type directory specifications
        if [[ "$cur" == \~*/* ]]; then
# avoiding tilde expansion
#               eval cur=$cur
                cur=$cur

        elif [[ "$cur" == \~* ]]; then
                cur=${cur#\~}
                COMPREPLY=( $( compgen -P '~' -u $cur ) )
                return [EMAIL PROTECTED]
        fi
}

Regards,
Alain Greppin

PS: the same applies for sid

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                4.0.3          Debian base system miscellaneous f
ii  debianutils               2.28.4         Miscellaneous utilities specific t
ii  libc6                     2.7-10         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080308-1 Shared libraries for terminal hand

Versions of packages bash recommends:
pn  bash-completion               <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to