All pastes #189687 Raw Edit

martynas

public shellscript v1 · immutable
·published 2006-10-03 10:19 UTC
rendered paste body
Note: A common mistake is to use ``if [ $foo = bar ]'' whichfails if parameter ``foo'' is NULL or unset, if it has embeddedspaces (i.e. IFS characters), or if it is a unary operator like`!' or `-n'.  Use tests like ``if [ "X$foo" = Xbar ]'' instead.