Of Spaces, Underscores and Dashes

2 little notes from a unixish perspective (I thought I’d share because I’m reading your blog to get the windowsish perspective):

\w is not portable regex, but rather from the preg (perl regex) set.

Also, spaces in file names, esp. as arguments to shell scripts, are easily lost because once inside the script, evalling a string more than once makes it “fall apart”, quoted or not.

The solution there is the magic variable “$@” (quotes included) which evals to all positional arguments, properly quoted one by one.