From owner-freebsd-questions Sat Jul 18 19:55:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA23604 for freebsd-questions-outgoing; Sat, 18 Jul 1998 19:55:16 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA23599 for ; Sat, 18 Jul 1998 19:55:12 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id MAA03605; Sun, 19 Jul 1998 12:24:47 +0930 (CST) Message-ID: <19980719122446.M957@freebie.lemis.com> Date: Sun, 19 Jul 1998 12:24:46 +0930 From: Greg Lehey To: Jon Hamilton Cc: FreeBSD Questions Subject: Re: Unsetting exported environment variables? References: <19980719103309.J957@freebie.lemis.com> <199807190240.MAA14027@allegro.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199807190240.MAA14027@allegro.lemis.com>; from Jon Hamilton on Sat, Jul 18, 1998 at 09:42:00PM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 18 July 1998 at 21:42:00 -0500, Jon Hamilton wrote: > > In message <19980719103309.J957@freebie.lemis.com>, Greg Lehey wrote: > >> That was the confusion. I didn't know that there was an unset command >> in the Bourne shells as well. > > I'm rather surprised that you didn't manage to turn this up on your own, > though; since it's a shell question, I would think it would be obvious to > look in the shell's man page. From the sh(1) man page on a -stable system: > > unset name ... > The specified variables and functions are unset and unexported. > If a given name corresponds to both a variable and a function, > both the variable and the function are unset. > > I know you already found the answer; I'm just marveling that you asked > the list in the first place. Man pages are good for finding something if you know what you're looking for. I never thought there would be an "unset" command, so I would have needed to read the entire man "page" (68 pages in the case of bash), which is rather inefficient. I *did* scan it, but I thought it would be quicker to ask. It was. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message