Date: Tue, 15 Jun 2004 09:04:59 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Geert Hendrickx <geert.hendrickx@ua.ac.be> Cc: freebsd-questions@freebsd.org Subject: Re: setting variables in tcsh temporarily Message-ID: <20040615080459.GA92278@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040614233248.GA91837@lori.mine.nu> References: <20040614233248.GA91837@lori.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <command>
>=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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040615080459.GA92278>
