[Top][All Lists]

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

Print non-readonly variables with declare +r -p

From: lhunath
Subject: Print non-readonly variables with declare +r -p
Date: Tue, 13 Dec 2011 12:14:41 +0100 (CET)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: darwin11.2.0
Compiler: /Developer/usr/bin/clang
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='darwin11.2.0' -DCONF_MACHTYPE='i386-apple-darwin11.2.0' 
-DCONF_VENDOR='apple' -DLOCALEDIR='/opt/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H -DMACOSX   -I.  -I. -I./include -I./lib  
-I/opt/local/include -pipe -O2 -arch x86_64
uname output: Darwin mbillemo.lin-k.net 11.2.0 Darwin Kernel Version 11.2.0: 
Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
Machine Type: i386-apple-darwin11.2.0

Bash Version: 4.2
Patch Level: 10
Release Status: release

        The description of declare states that using + instead of - in front of 
an attribute turns it off.  From that, I would expect (and find useful) to be 
able to display (-p) all non-read-only variables using declare +r -p, just like 
I can display all readonly variables using declare -r -p

        declare +r -p

    Show all variables that do not have the given attribute(s) when included in 
the declare command prefixed with a +.

reply via email to

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