From owner-freebsd-questions Fri Jul 17 23:24:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA24421 for freebsd-questions-outgoing; Fri, 17 Jul 1998 23:24:54 -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 XAA24412 for ; Fri, 17 Jul 1998 23:24:49 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id PAA00599; Sat, 18 Jul 1998 15:54:23 +0930 (CST) Message-ID: <19980718155422.D376@freebie.lemis.com> Date: Sat, 18 Jul 1998 15:54:22 +0930 From: Greg Lehey To: FreeBSD Questions Subject: Unsetting exported environment variables? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i 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 If you try to run SuperProbe with the variable DISPLAY set, it will refuse to run. That's OK with the C shell, you just enter: % unsetenv DISPLAY % /usr/X11R6/bin/SuperProbe Unfortunately, to my knowledge there's no similar function in the Bourne shell. You can set the variable to the null string: # DISPLAY= # /usr/X11R6/bin/SuperProbe SuperProbe: Cannot be run while an X server is running SuperProbe: If an X server is not running, unset $DISPLAY and try again SuperProbe: Cannot open video Can anybody tell me how to do this in the Bourne shell? The only thing I can think of is to start a C shell for this operation. 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