View Single Post
Old 09-25-2009, 08:20 AM   #23
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by krischik View Post
'[' 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
rogue_ronin is offline   Reply With Quote