bug-bash
[Top][All Lists]
Advanced

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

Re: "complete -o filenames" sometimes not working


From: Grisha Levit
Subject: Re: "complete -o filenames" sometimes not working
Date: Mon, 11 Nov 2024 09:51:43 -0500

On Sat, Nov 9, 2024, 07:41 Clark Wang <dearvoid@gmail.com> wrote:

> On Sat, Nov 9, 2024 at 1:48 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> >
> > OK. You asked for the completions to be treated as filenames. When
> > readline displays the possible completions for filenames, it doesn't
> > display the full pathname -- just the portion after the final slash.
> > The words with ProxyCommand= are trimmed to the portion after the
> > .../usr/bin/.
> >
>
> Ah I didn't realize it's only the basename part being displayed. Any way to
> have it display the full pathnames?


If your goal is to have readline do the quoting for you, without treating
the completions as filenames, the next version of bash (5.3, see the
'devel' branch in the git repo) will have the '-o fullquote' option for
compgen/compopt.

>


reply via email to

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