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

[BUG] incorrect expansion with expand-or-complete and single quote



I recall the following bug I posted in workers/53040 (with a
small correction in workers/53041) concerning expansion with
expand-or-complete and single quote.

Nothing has changed in 5.9.0.2-test.

Consider a directory with the following 3 files: a'1 a'2 ab

I get as expected:

qaa% echo a\'*
a'1 a'2

But if I type [Tab] (expand-or-complete) after a\'* (as written
just above), then I get

qaa% echo a\'1 a\'2 ab

instead of

qaa% echo a\'1 a\'2

Now, consider a directory with the following 2 files: a'b'1 a'b'2

I get as expected:

qaa% echo a\'b\'*
a'b'1 a'b'2

But if I type [Tab] (expand-or-complete) after a\'b\'* (as written
just above), this is not expanded, while I should have obtained

qaa% echo a\'b\'1 a\'b\'2

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)




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