>>>>> On Thu, 4 Mar 2010 14:47:47 +0100, Marc Schiffbauer said:
> Mail-Followup-To: bacula-users@lists.sourceforge.net
> 
> * Martin Simmons schrieb am 04.03.10 um 11:40 Uhr:
> > >>>>> On Thu, 4 Mar 2010 03:41:36 +0100, Marc Schiffbauer said:
> > > 
> > > Why not use 
> > > 
> > >   if [ "$var" = "" ]; then
> > > 
> > > if -z may not be available?
> > 
> > Because $var might be set to something like ! which would cause a syntax
> > error.
> 
> Thx Martin, I did not know this. Is it only "!" because of some job
> control stuff or everything that is not [:alnum:]?

No, it is because "!" is special syntax in the "[" command (aka "test").

__Martin

------------------------------------------------------------------------------
Download Intel® 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to