dirinst comparing "X$action" with "Xdirinst" instead of $action with "dirinst"
Thomas Lange
lange at informatik.uni-koeln.de
Mon Oct 2 11:25:52 CEST 2006
>>>>> On Sun, 1 Oct 2006 13:31:08 +0200, "Henning Sprang" <henning_sprang at gmx.de> said:
> if [ X$action = Xdirinst ]; then
This is normal shell coding practice. It helps if $action is not defined
at all. Then the test without quotes "" around an undefined variable
will give a syntax error.
--
regards Thomas
More information about the linux-fai-devel
mailing list