Federico Sevilla III wrote:

if [ ! "$?" = 0 ]; then

The brackets in if are for conditions, and are equivalent to the test command. Read the test(1) manual page for more information. I don't know if the brackets are universal for sh-like shells, or if they're bashisms.

The [ could be expanded to /usr/bin/[ which is but a symbolic link to /usr/bin/test so it should work for all sh-like shells.


Bash might interpret it directly for efficiency though.

Brian

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to