Skip to content

Completion with alias doesn't work #75

@johngavingraham

Description

@johngavingraham

Regular completion works, e.g. at a shell with ls d + TAB:

commandline: <<EOF
if type __ebcpre &>/dev/null; then   __ebcpre; __EBCWRAPPER='COMP_LINE='\''ls d'\''; COMP_POINT=$(( 1 + ${#COMP_LINE} )); COMP_CWORD=1; COMP_WORDS=( ls d ); _comp_complete_longopt ls d ls' __ebcompgen -F __ebcwrapper -- d; else   echo ==emacs==nopre=${BASH_VERSION}==.;   __ebcp=("$PS1" "$PROMPT_COMMAND");  unset PS1 PROMPT_COMMAND;fi;
EOF

status: 0
process: #<process shell>
output-buffer: <<EOF
dockerfile/
docs/
driveorin-manager.env
driveorin-manager
driveorin-test-manager.env
driveorin-test-manager
EOF

emacs-version: "29.4"
bash-version: "5.2.32(1)-release"
bash-version: "5.2.32(1)-release"
context: #s(completion "ls d"
              ("ls" "d")
              1 "d" 25019 "d" nil
              ("-F" "_comp_complete_longopt")
              "\"'><=;|&(:" nil)

But I have the following alias set up:

$ alias ll
alias ll='ls -lFh --color=auto'

And at the same location, completing ll d doesn't work:

commandline: <<EOF
if type __ebcpre &>/dev/null; then   __ebcpre; __EBCWRAPPER='COMP_LINE='\''ll d'\''; COMP_POINT=$(( 1 + ${#COMP_LINE} )); COMP_CWORD=1; COMP_WORDS=( ll d ); _comp_complete_minimal ll d ll' __ebcompgen -F __ebcwrapper -- d; else   echo ==emacs==nopre=${BASH_VERSION}==.;   __ebcp=("$PS1" "$PROMPT_COMMAND");  unset PS1 PROMPT_COMMAND;fi;
EOF

status: 0
process: #<process shell>
output-buffer: <<EOF
EOF

emacs-version: "29.4"
bash-version: "5.2.32(1)-release"
bash-version: "5.2.32(1)-release"
context: #s(completion "ll d"
              ("ll" "d")
              1 "d" 25228 "d" nil
              ("-F" "_comp_complete_minimal")
              "\"'><=;|&(:" nil)

I've checked in a regular terminal (Gnome Shell) at the same location and both ls d and ll d work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions