delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/13/12:23:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990913122035.A15670@ba.best.com>
Date: Mon, 13 Sep 1999 12:20:35 -0400
From: Glenn Spell <glenn AT gs DOT fay DOT nc DOT us>
To: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Printing the environment table
Mail-Followup-To: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
References: <19990913124126 DOT 19577 DOT rocketmail AT web126 DOT yahoomail DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.93.2i
In-Reply-To: <19990913124126.19577.rocketmail@web126.yahoomail.com>; from "Earnie Boyd" on Mon, Sep 13, 1999 at 05:41AM
Organization: the aerie

On 13 Sep 1999 around 5:41AM (-0700) Earnie Boyd wrote:

> --- Clark Sims <clarksimsgnu AT my-Deja DOT 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 AT gs DOT fay DOT nc DOT us>    )     >-----._/_/__]>
 )________________________________________)               `0  |

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019