Unix Shell - bash declare -r

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2007 > bash declare -r





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author bash declare -r
rodrick.brown@gmail.com

2007-05-17, 1:18 pm

What are major differences between declare -r VAR=var and VAR=val in
bash ?

Glenn Jackman

2007-05-17, 1:18 pm

At 2007-05-17 11:08AM, "rodrick.brown@gmail.com" wrote:
> What are major differences between declare -r VAR=var and VAR=val in
> bash ?


$ VAR=val
$ VAR=val2
$ unset VAR
$ declare -r VAR=val
$ VAR=val2
bash: VAR: readonly variable


--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
Stephan Grein

2007-05-17, 1:18 pm

stephan@unimatrix ~ $ help declare | sed -n '/^\s*-r/p'
-r to make NAMEs readonl
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com