rjgray
Joined 13 years ago
Karma
214
Submissions
26
Member since
Aug 14
[ my public key: https://keybase.io/vortura; my proof: https://keybase.io/vortura/sigs/9nj3YYEW5xE_pZReb6zwAT_QaR4ZKnAovKB52K7a2LA ]
View on Hacker NewsJoined 13 years ago
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.