[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 18:26:38 -0400, Douglas A. Tutty wrote:
> > >if [ $foo == "" ]
> Yeah, and the spaces between the [ $ and the " ] are critical too; I
> just forget in what way.

Yes, because of tokenization. But tokenization is a notion that exists
in every language. Now, unlike in Python (with its indentation rules),
the *amount* of space is not significant.

-- 
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: