[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash vs. python scripts - which one is better?



On 2007-08-19 12:56:51 -0700, David Brodbeck wrote:
> It certainly has its warts.  In particular, Bash's "test" (aka "[") 
> operator has pitfalls.  Testing for an empty variable, for example, is 
> awkward.  If you do:
>
> if [ $foo == "" ]
>
> Bash will complain about missing arguments.

Yes, bash sucks. See also:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421591

zsh has fewer problems.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Reply to: