using set in a csh script

Jonathan I. Kamens jik at athena.mit.edu
Thu Oct 25 09:18:36 AEST 1990


In article <21752 at dime.cs.umass.edu>, martha at 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 at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.shell mailing list