🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1609

Re: using set in a csh script

#1609
From: Jonathan I. Kamens
Date: Wed, 24 Oct 1990 23:18
19 lines
1109 bytes
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
Technical Details
Message-ID: <1990Oct24.231836.13807@athena.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!athena.mit.edu!jik
References: <21752@dime.cs.umass.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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