From owner-freebsd-questions Fri May 8 04:57:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA08768 for freebsd-questions-outgoing; Fri, 8 May 1998 04:57:35 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dart.sr.se (dart.SR.SE [193.12.91.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA08760 for ; Fri, 8 May 1998 04:57:27 -0700 (PDT) (envelope-from gunnar@pluto.sr.se) Received: (from smap@localhost) by dart.sr.se (8.8.2/8.7.3) id NAA22018 for ; Fri, 8 May 1998 13:57:22 +0200 (MET DST) Received: from unknown(134.25.188.196) by dart.sr.se via smap (V1.3) id sma022012; Fri May 8 13:57:20 1998 Received: (from gunnar@localhost) by pluto.sr.se (8.8.8/8.8.7) id NAA05345; Fri, 8 May 1998 13:57:19 +0200 (CEST) (envelope-from gunnar) Message-ID: <19980508135719.60843@sr.se> Date: Fri, 8 May 1998 13:57:19 +0200 From: Gunnar Flygt To: questions@FreeBSD.ORG Subject: shellscript Reply-To: flygt@sr.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is there (of course there is but, how) a smart way of setting an environment variable that is one value when not using X and another when the shell script is run from X? example: when not running in X one may want $TERM=vt220 and when running in X $TERM=xterm-color. The shell used is bash. -- regards, Gunnar email: flygt@sr.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message