Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!daver!leadsv!iscnvx!schip From: schip@iscnvx.uucp (Jan B Schipmolder) Newsgroups: comp.unix.questions Subject: Re: C-shell script ... question Message-ID: <1991Jun25.035900.8108@iscnvx.uucp> Date: 25 Jun 91 03:59:00 GMT Reply-To: schip@iscnvx.UUCP (Jan B Schipmolder) Organization: LMSC - Information Services Lines: 16 In Message-ID: <1991Jun24.230024.18513@iscnvx.uucp> wurtz@iscnvx.uucp (J D Wurtz) writes (paraphrased): > I am using the C shell. If the script #!/bin/csh -f > echo ">>> dir = \c" > set dir = $< > echo dir = $dir > is stored in file alfa and if I > invoke it with set name = hello > alfa > >>> dir = $name > > then the script will display "$name" rather than "hello". How can I > get it to display "hello" rather than "$name" ? Replace "set dir = $<" by "set dir = `eval echo $<`".