Bacula-users

Re: [Bacula-users] Shell script question.

2010-03-04 11:34:46
Subject: Re: [Bacula-users] Shell script question.
From: Russell Sutherland <russ AT madhaus.cns.utoronto DOT ca>
To: Marc Schiffbauer <marc AT schiffbauer DOT net>
Date: Thu, 4 Mar 2010 11:03:38 -0500

   Why would you do this:

if [ "x$var" = "x" ]; then
...
fi

The above shell programming construct is ancient, well tested and reliable as it works on the various flavours of the Bourne/Korn/Bash shells.
Keep it simple.

---
Russell P. Sutherland       Email: russ @ madhaus.cns.utoronto.ca
4 Bancroft Ave., Rm. 102 Voice: +1.416.978.0470
University of Toronto Fax:   +1.416.978.6620
Toronto, ON  M5S 1C1
CANADA





------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users