Apologies if this already has been noted elsewhere or is for some reason
a desired behavior, but it seems that ls doesn't behave as expected when
matching spaces with globbing. For example, if I have the files "foo",
"foo1" and "foo bar" in my directory, a call to
ls foo*
yields only foo and foo1. However, a call to ls "foo "* yields "foo
bar" (sans quotes) as expected.
My understanding is that * is supposed to match any characters (except
an initial . in *foo).
I'm not sure if it's an actual bug or anyone cares, but I decided to
reported it on the off chance that it is.
Platform:
Ubuntu 15.10, 4.2.0-16-generic
ls v. 8.23
zsh 5.1.1 (but also confirmed same behavior under bash
4.3.42(1)-release)
Cheers,
Ken