BASH and VARs

Doran Barton fozz at iodynamics.com
Tue Mar 1 18:00:02 MST 2005


Not long ago, Gabriel Gunderson proclaimed...
> How can I keep bash from using undeclared variables (other then being
> careful)?

Always do conditional statements in quotes. Use this syntax: ${VAR}.

-=Fozz
-- 
fozz at iodynamics.com is Doran L. Barton, president, Iodynamics LLC
Iodynamics: Linux solutions - Web development - Business connectivity
 "Cooles and Heates: If you want just condition of warm in your room,
  please control yourself."
    -- From a Japanese information booklet about using a hotel air
	conditioner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20050301/af7d828d/attachment.bin 


More information about the PLUG mailing list