Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!philabs!cmcl2!seismo!trwatf!rlgvax!peter From: peter@rlgvax.UUCP (Peter Klosky) Newsgroups: net.unix Subject: Re: Creating a file in csh Message-ID: <614@rlgvax.UUCP> Date: Tue, 23-Apr-85 09:58:15 EST Article-I.D.: rlgvax.614 Posted: Tue Apr 23 09:58:15 1985 Date-Received: Fri, 26-Apr-85 03:33:42 EST References: <797@u1100a.UUCP> <254@tellab3.UUCP> <1581@ukma.UUCP> <1899@sdcrdcf.UUCP> <6177@Glacier.ARPA> <860@enea.UUCP> Distribution: net Organization: CCI Office Systems Group, Reston, VA Lines: 15 XXX Another problem with "touch " 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.