Bash and declare

Neil Watson tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org
Wed Mar 29 15:33:39 UTC 2006


I bought Ken's book on Bash scripting.  In it he talks about using
'declare' to initialize variables.  In Perl 'my' is used like declare
but, more specifically for variable scope.  What is the purpose of
declare?

-- 
Neil Watson             | Gentoo Linux
System Administrator    | Uptime 25 days
http://watson-wilson.ca | 2.6.11.4 AMD Athlon(tm) MP 2000+ x 2
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list