bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using alias to commands disables its completion


From: Gustavo Serra Scalet
Subject: Using alias to commands disables its completion
Date: Thu, 24 Mar 2011 13:54:31 -0300

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-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
-DRECYCLES_PIDS  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
uname output: Linux guttp 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu

Bash Version: 4.1
Patch Level: 7
Release Status: release

Description:
    When an alias is supplied to a command (e.g: alias c="cd") the
    complete doesn't complete like it used when using the original text,
without
    using alias (e.g $ c <TAB><TAB> # returns all files, not just
directories)

    It doesn't seem to have any technical issue problem to make the
detection of
    completion also by using alias (as when <ENTER> is hit the alias are
also
    interpreted).

Repeat-By:
    $ alias c="cd"
    $ c <TAB><TAB>
    # suppose to only show directories, but it shows every file


reply via email to

[Prev in Thread] Current Thread [Next in Thread]