2025年8月23日(土) 4:28 Chet Ramey <[email protected]>:
> > Repeat-By:
> > 1. touch '[$L]'a '[$L]'b;
> >      2. less <tab>
> >         * The completion is less "[$L].
> Because bash completion guesses that the user wants the expansion to take
> place, since there's no filename matching the completion, and double quotes
> allow that. In this case it guesses wrong, so I'll have to look at that.

What is the current status of this problem? This doesn't seem to be
fixed in the latest "devel" branch. I'd like to report that we hit a
similar problem in bash-completion:

https://github.com/scop/bash-completion/issues/1435

$ touch 'a$b'
$ f "a\$<tab>
$ f "a$b"  # <-- The necessary quoting of $ is removed.

This happens in Bash 5.3 and devel, but doesn't in Bash 5.2.

--
Koichi

Reply via email to