News for hackers. Stuff that matters.
Re:Better bash in 15 minutes by claudius on Wednesday April 16, 2014 @10:40AM (#7598044)

  $ ls -l "*"
  ls: cannot access *: No such file or directory
Of course, you might want that exact behaviour, but sometimes you want e.g. all .table files in a path with a space. I believe

  $ ls -l "path with/lots of spaces/"*
is the correct solution, but it seems silly. I'm not entirely sure why variable expansion works inside double quotes but wildcard expansion doesn’t.
Re:Better bash in 15 minutes by elwin on Wednesday April 16, 2014 @11:52AM (#7598510)
> I'm not entirely sure why variable expansion works inside double quotes but wildcard expansion doesn’t.

That's because a double-quoted expression is supposed to evaluate to a single word. Wildcard expansion can result in multiple words, but parameter expansion doesn't.

(Except for things like "$@". With bash, the rules always have exceptions.)

Re:Better bash in 15 minutes by claudius on Wednesday April 16, 2014 @01:48PM (#7599278)
TIL. Thank you very much! :)