214 karma · joined August 14, 2013
You can also do the same thing on Linux using xcape[3]
[1]: https://pqrs.org/osx/karabiner/seil.html.en [2]: https://pqrs.org/osx/karabiner/index.html.en [3]: https://github.com/alols/xcape
2. I think this is for the situation where the glob doesn't match, and the nullglob shell option is not set. Without that option, a non-matching glob is processed as a regular word. e.g. In an empty directory:
$ for file in ./*; do echo $file; done
./*
Note the glob pattern is printed by the echo statement. The -e test catches this condition.It reminds me of the slitscan special effects technique that was used to create the stargate sequence at the end of 2001: A Space Odyssey.
http://filmmakeriq.com/lessons/slit-scan-recreating-the-star...
I'm curious about that decision given that optparse is deprecated. It says it's because argparse doesn't allow nested commands, but I don't really see why that feature is so desirable as to warrant using a deprecated module. I probably need to have a play with it to find out.
Looks like a nice module.