Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] single-quote problem in completion quoting



On Thu, Jul 3, 2025 at 8:55 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On Thu, Jul 3, 2025 at 6:51 AM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
> >
> > % file '
> > <press TAB>
> > % file 'test'\''   # Missing the last single quote
>
> Is this the same issue as in workers/53793?

I don't think this is the same.  In Marlon's example, the single quote
is not completing as part of the file name, it's being treated as the
opening quote of a string.  There's actually not a missing last single
quote, rather there's an extra last single quote.  Completion is
trying to close the opened quoted string but the replacement done by
compadd isn't in the right form for that.




Messages sorted by: Reverse Date, Date, Thread, Author