delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/12/11:54:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 12 Feb 2001 11:47:02 -0500
From: Chet Ramey <chet AT nike DOT INS DOT CWRU DOT Edu>
To: cabbey AT bresnanlink DOT net
Subject: RE: bash: setenv: command not found
Cc: cygwin AT cygwin DOT com, chet AT po DOT cwru DOT edu
Reply-To: chet AT po DOT cwru DOT edu
Message-ID: <1010212164702.AA62809.SM@nike.INS.CWRU.Edu>
Read-Receipt-To: chet AT po DOT CWRU DOT Edu
MIME-Version: 1.0
X-In-Reply-To: Message from cabbey AT bresnanlink DOT net of Thu, 8 Feb 2001 21:40:25 -0600 (CST) (id <Pine DOT LNX DOT 4 DOT 21 DOT 0102082043390 DOT 24358-100000 AT tweedle DOT cabbey DOT net>)

> yep, I'm familiar with it:
> 
> foo=bar sets a local shell variable
> foo=  unsets a local shell variable

Not exactly.  It makes `foo' have a null value.  It's not the same thing.

> but where is "unexport"? how do I demote a process environment variable
> without removing it from the local shell?

Bash has `export -n'.  POSIX doesn't.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet AT po DOT CWRU DOT Edu    http://cnswww.cns.cwru.edu/~chet/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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