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

Reply via email to