Re: ls lacking a feature?



Richard Heathfield wrote:
Roger Willcocks said:


"Willem" <willem@xxxxxxxx> wrote in message

If you happen to be on bash, then typing asterisk-slash-tab-tab will
also list all directories, by the way, by using autocompletion.

I'd forgotten that.

Not here it doesn't (and I am using bash, with autocompletion).

Something similar might work on other shells as well.


asterisk-tab-tab (no slash) also lists directories in bash. I've no idea
why.

Hmmm. Not in my bash it doesn't. And I've no idea why, either!

Possibly because it's an ancient bash, dating from 2000 or so.

I think it's a bash 3 feature. Bash 3.1 does it on my machine.

I have a feeling "*" "/" TAB TAB should work in older bashes. It would
be the logical behaviour of readline completion.

.


Quantcast