It isn't ls
that's the culprit; ls
does no expansion at all, even of (for example) D*
. It's bash
which does the expansion, and then passes the list off to the ls
To demonstrate this, use the echo
command instead of the ls
command; you'll get the same result.
doesn't use conventional regular expressions at all. To find out what it uses instead, do this at the command line:
and then skip down to
Hope this helps.