Quote:
|
Originally Posted by philippe_PMA
With bash and family (sh, ksh, etc), you can use :
|
That's actually a more accurate answer to the OP's question, since set/declare list shell variables also (these variables are specific to the bash shell not a particular user environment), and also list shell functions if any are defined.
But It depends what you're looking for, env variables are passed to child processes, shell variables are not (but will be used if the shell is used in the child process obviously)