Hi John, On Thu, Apr 12, 2012 at 10:42:33PM -0500, John McKown wrote: > bash has variables, such as $PATH and $HOME and maybe even $i. If a > variable has been the subject of an export command, you find all of them > which are export'd using the printenv command. But is there some way to > find the ones which exist, but have not been export'd? > > No, I guess I don't have a real need for this. But I'm curious.
You can use "declare -p". Exported variables are displyed with "-x", for example: declare -x EDITOR="vim Take a look at "help declare" for other options like if a variable is an array... ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/