Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: how to compare file modification time in bourne shell script Message-ID: <7179@star.cs.vu.nl> Date: 26 Jul 90 21:01:49 GMT References: <1990Jul23.233044.2729@silma.com> <840@ehviea.ine.philips.nl> Sender: news@cs.vu.nl Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 21 In article , mike@x.co.uk (Mike Moore) writes: )... ) newer() { ) file=$1 ) set `ls -t $1 $2` # func args are now changed ) [ $file = $1 ] && return 0 || return 1 ) } Equivalently: newer() { file=$1 set `ls -t $1 $2` # func args are now changed [ $file = $1 ] } Sic! -- "and with a sudden plop it lands on usenet. what is it? omigosh, it must[...] be a new user! quick kill it before it multiplies!" (Loren J. Miller)