bug-bash
[Top][All Lists]
Advanced

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

output of `export -p' seems misleading


From: wuya
Subject: output of `export -p' seems misleading
Date: Fri, 9 Nov 2012 01:09:24 -0800 (PST)
User-agent: G2/1.0

Hi all,
   1. why `export -p' output something in the format `declare -x foo="bar"'
   2. this format gives user an implication that by executing these `declare' 
commands, all those variables got exported, but this is only partly true as it 
fails in functions.
   3. As in bash 4.2, -g option is added. why not change output format of 
`export -p' to `declare -g foo="bar"'?

thanks!


reply via email to

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