PDA

View Full Version : list of currently used shell variables


roparzhhemon
03-02-2007, 01:36 AM
Hello all,

is there a (possibly composite) command that outputs
all the currently used variable names in the system (i.e. the strings
x such that echo $x will not produce a blank output) ?

Ewan

Hal Itosis
03-02-2007, 12:43 PM
set

set will printout (almost?) every variable [for the shell it's run in].

see help set

[we're talkin' bash i assume?]

-HI-