|
|
Log in / Subscribe / Register

A report from the documentation maintainer

A report from the documentation maintainer

Posted Oct 31, 2016 0:32 UTC (Mon) by mathstuf (subscriber, #69389)
In reply to: A report from the documentation maintainer by neilbrown
Parent article: A report from the documentation maintainer

Two solutions: stop using a buggy shell or use {A..Z} which doesn't have the problem. Well, a third would be to have bash expand globs on <Tab> like Zsh can[1], but I don't know how to do that.

[1]`rm a*<Tab>` becomes `rm afile adir` and so on.


to post comments

A report from the documentation maintainer

Posted Oct 31, 2016 16:13 UTC (Mon) by nybble41 (subscriber, #55106) [Link]

> use {A..Z} which doesn't have the problem

That has a different problem: Unlike the glob pattern [A-Z], the braces expand to every letter from A to Z, even if some of them don't match:

$ echo [A-D]*
Desktop Documents Downloads
$ echo {A..D}*
A* B* C* Desktop Documents Downloads

> have bash expand globs on <Tab> like Zsh can[1]

The readline command for this in Bash is glob-expand-word (C-x *).


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds