From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 08:05:37 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 662EF16A4CE for ; Tue, 15 Jun 2004 08:05:37 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0647843D1F for ; Tue, 15 Jun 2004 08:05:36 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i5F852L1092683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jun 2004 09:05:02 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i5F8504u092672; Tue, 15 Jun 2004 09:05:00 +0100 (BST) (envelope-from matthew) Date: Tue, 15 Jun 2004 09:04:59 +0100 From: Matthew Seaman To: Geert Hendrickx Message-ID: <20040615080459.GA92278@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Geert Hendrickx , freebsd-questions@freebsd.org References: <20040614233248.GA91837@lori.mine.nu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20040614233248.GA91837@lori.mine.nu> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.3.8 (smtp.infracaninophile.co.uk [0.0.0.0]); Tue, 15 Jun 2004 09:05:02 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040612, clamav-milter version 0.72a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: setting variables in tcsh temporarily X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 08:05:37 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 15, 2004 at 01:32:49AM +0200, Geert Hendrickx wrote: > I have this simple question regarding the tcsh:=20 >=20 > in /bin/sh (Bourne shell) I can assign a value to an environment variable= for > just one command, like this:=20 >=20 > VARIABLE=3Dvalue >=20 > e.g. "DISPLAY=3D:0 xterm" or "CFLAGS=3DO2 make". =20 >=20 > Can this be done with tcsh as well? The only thing I can think of is thi= s: You need the env(1) command: % env DISPLAY=3D:0 xterm Syntax is just like the Bourne shell equivalent; just insert 'env' at the beginning of the command line. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAzq2riD657aJF7eIRAsYKAJ98J20beTi5RIXGFter4L+HaPcVsACfV6VD inj3YIT+rOTqOhxEm3YXBwg= =TVbc -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--