Date: Wed, 21 May 1997 23:43:52 -0500 From: Paul DuBois <dubois@primate.wisc.edu> To: John Utz <spaz@u.washington.edu> Cc: questions@FreeBSD.ORG Subject: Re: stupid tcsh question.... Message-ID: <19970521234352.29856@night.primate.wisc.edu> In-Reply-To: <Pine.OSF.3.95.970521173602.16843A-100000@becker2.u.washington.edu>; from John Utz on Wed, May 21, 1997 at 05:38:04PM -0700 References: <Pine.OSF.3.95.970521173602.16843A-100000@becker2.u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 21, 1997 at 05:38:04PM -0700, John Utz wrote: > Hello; > > can anyone on this list share with me the method used to get a tcsh script > to read from the command line? > > sh uses 'read' evidently, but tcsh does not appear to be so blessed... This will read a line and assign the first word to $x: set x = $< This will read a line and assign the whole thing to $x: set x = ($<) -- Paul DuBois dubois@primate.wisc.edu Home page: http://www.primate.wisc.edu/people/dubois Software: http://www.primate.wisc.edu/software
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970521234352.29856>