Dimitri Papadopoulos wrote:
> 
> - By the way, why is an `x' prepended to both sides of the `!=' operator in
>   line 48? Shouldn't we change from:
>         -a x`echo "$map" | cut -c1` != 'x-' ]
>   to:
>         -a `echo "$map" | cut -c1` != '-' ]
>   I understand that the intend is to filter out special maps such as -hosts,
>   -xfn and -null.

This is generally a bad idea, since if the left hand side evaluates
to nothing, you get a test that looks like "if [ != '-']", which
confuses the shell.

It is safer to always add a bogus character, even if it is not
strictly needed in some cases.
-- 
Bengt �hman <[EMAIL PROTECTED]>
Department of Information Technology at Lund Institute of Technology
-- Friend of LAPHROAIG --

Reply via email to