Quote:
Originally Posted by krischik
'[' is a abbreviation for 'test' - you find the documentation with 'info test' or 'man test'. Once I found that out I have stopped using '[' and use 'test' instead.
So instead of:
Code:
if [ -e /Some/File ] ; then
I use:
Code:
if test -e /Some/File; then
Martin
|
Thanks for the info. Honestly, and without irony, thanks.
You perfectly encapsulate my point -- without knowing it means 'test' you can't find out that it means 'test'. Lots of programmers seem to think that if you type only one character ([) instead of four characters (test) it's better. They can't help themselves.
Yet they won't use Forth. Go figure.
m a r