Printing the environment table
Glenn Spell
glenn@gs.fay.nc.us
Thu Sep 30 23:42:00 GMT 1999
On 13 Sep 1999 around 5:41AM (-0700) Earnie Boyd wrote:
> --- Clark Sims <clarksimsgnu@my-Deja.com> wrote:
>
> > Is there a way to pring all of the variables in the environment
> > table. The DOS equivalent command is SET. I tried echo $*, but
> > this does not work.
>
> Did you try `set'?
'set' (in bash and ash) displays all shell/process variables.
BASH.EXE-2.03$ type set
set is a shell builtin
BASH.EXE-2.03$ help set
set: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
[lots of stuff deleted]
If no
ARGs are given, all shell variables are printed.
'printenv' displays all environment variables.
BASH.EXE-2.03$ type printenv
printenv is /CYGNUS/CYGWIN~1/H-I586~1/BIN/printenv
BASH.EXE-2.03$ printenv --help
Usage: printenv [OPTION]... [VARIABLE]...
If no environment VARIABLE specified, print them all.
-glenn
--
________________________________________ _ _____
) )_ _ (__\____o /_/_ |
) Glenn Spell <glenn@gs.fay.nc.us> ) >-----._/_/__]>
)________________________________________) `0 |
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list