[Tutor] Error Handling in python

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Thu Jul 24 14:23:49 CEST 2014


On 24.07.2014 14:19, Chris “Kwpolska” Warrick wrote:
>
>>>> python test.py
>>>> if [ $? = 0 ]; then
>>>>       python second.py
>>>> fi
>>>>
>>>> as your shell script.
>>>
>>>
>>> The [ ] and = should be doubled.
>>
>>
>> ?? why that ?
>
> Double brackets can do more:
>
> http://stackoverflow.com/questions/2188199/how-to-use-double-or-single-bracket-parentheses-curly-braces
>

But more is not required here. What am I missing ?



More information about the Tutor mailing list