Creating a file in csh

Peter Klosky peter at rlgvax.UUCP
Wed Apr 24 00:58:15 AEST 1985


XXX
Another problem with "touch <filename>" is that it will not work if the
	file name is something like "123456789012345" because touch
	will think you are passing a date argument.
The syntax of touch in according to the SYS III manual is supposed to be
	touch [-amc] [mmddhhmm] files
The way I read this is:
	if there is one arg, it is a file name
	else there may exist multiple files or some optional arguments.
In a similar light, try
	if test "$1" = -t
	 then
	   echo found a -t argument.
	fi
Test thinks you are asking about terminals when $1 is -t.



More information about the Comp.unix mailing list