[Gllug] $HOSTNAME

James Laver gllug at jameslaver.com
Tue Sep 8 23:18:09 UTC 2009


On 8 Sep 2009, at 17:39, Hari Sekhon wrote:
> Some elementary shell scripting will allow you to test for any of this
> though... and if you're writing anything without such tests then your
> code simply isn't robust, and shell scripting usually garners  
> criticism
> from people who aren't very adept at writing it for this very reason.
> Defensive programming should be employed regardless.

Really, please do tell us how you'd program defensively against a  
silly scenario such as this.

None of my scripts anticipate it, should I be taken out and shot?[1]

--James
[1] A lot of people are coming with me if so ;)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list