Allan McRae wrote:

Looking into this further, it seems that the ABS guide always quotes variables. I.e. [ "$foobar" -eq 0 ]. Exceptions being $? and $#. I have tried to figure out what advantage this gives but can not find any.

Allan

I think it's just generally good practice to quote variables because they could have spaces in them. However, in the case of the -eq operation, anything other than a single integer with no spaces will produce an error anyway.

I think it's just a good habit to be in, to quote variables, even if the specific instance doesn't actually call for it.

Bryan

_______________________________________________
pacman-dev mailing list
[email protected]
http://archlinux.org/mailman/listinfo/pacman-dev

Reply via email to