Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.shell Subject: Re: using set in a csh script Message-ID: <1990Oct24.231836.13807@athena.mit.edu> Date: 24 Oct 90 23:18:36 GMT References: <21752@dime.cs.umass.edu> Sender: daemon@athena.mit.edu (Mr Background) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 19 In article <21752@dime.cs.umass.edu>, martha@cs.umass.edu (Martha S. DasSarma) writes: |> What happens is that the set deletes the extra spaces I put |> in the set. Wrong. The spaces are not deleted when you do the set, they are deleted when you do the echo, since the echo command echoes each of its arguments, separating each of them by one space. % set t="Mon 5" % echo $t Mon 5 % echo "$t" Mon 5 -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710