cool! first time i heard of this.

On 8/10/07, Sherwin Daganato <[EMAIL PROTECTED]> wrote:
>
> On 8/7/07, Ludwig Isaac Lim <[EMAIL PROTECTED]> wrote:
> >     Is there a way of preventing environment variables to
> > be modified?
>
> you mean like readonly shell variables...
>
> # echo $UID
> 0
>
> # unset UID
> -bash: unset: UID: cannot unset: readonly variable
>
> # UID=1234
> -bash: UID: readonly variable
>
> # readonly MYVAR=2
> # echo $MYVAR
> 2
>
> # unset MYVAR
> -bash: unset: MYVAR: cannot unset: readonly variable
>
> # MYVAR=1234
> -bash: MYVAR: readonly variable
>
> # echo $MYVAR
> 2
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
>



-- 
Mhac Janapin
PBTS SysAd
=============
http://mulingsilang.blogspot.com
=============
I'm an Open Source Enthusiast. c",)
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to