bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"declare -r" creates local variables


From: Aron Griffis
Subject: "declare -r" creates local variables
Date: Wed, 20 Feb 2002 16:30:02 -0500

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-mcpu=i686 -march=i686 -O3 -pipe
uname output: Linux time.flatmonk.org 2.4.18-pre3 #3 Tue Jan 22 20:18:48 EST 
2002 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        "declare -r" causes a variable to become local to a function

Repeat-By:
        func() { declare -r myvar=1; }
        func
        echo $myvar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]