bug-bash
[Top][All Lists]
Advanced

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

./script doesn't work in completion function


From: Oğuz
Subject: ./script doesn't work in completion function
Date: Sat, 20 Jan 2024 20:20:57 +0300

See:

    $ echo echo foo bar >s
    $ chmod +x s
    $ f(){ COMPREPLY=($(bash ./s));}
    $ complete -F f g
    $
    $ g
    bar  foo
    $ g ^C
    $
    $ f(){ COMPREPLY=($(./s));}
    $ g             ^C^C
    $

I press tab after typing `g ' in both cases, this moves the cursor to
the right in the second case instead of showing the completion
options.

This is reproducible on both the devel branch and 5.1.16, I didn't test 5.2.

Oğuz



reply via email to

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