Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!ftpbox!motsrd!motcid!yeates From: yeates@motcid.UUCP (Tony J Yeates) Newsgroups: comp.unix.shell Subject: Re: Comparing modified times of files Message-ID: <6067@iron6.UUCP> Date: 25 Mar 91 18:17:53 GMT References: <930001@mjm.mjm.com> <6350@amc-gw.amc.com> Organization: Motorola Inc., Cellular Infrastructure Div., Arlington Heights, IL Lines: 14 krs@uts.amdahl.com (Kris Stephens [Hail Eris!]) writes: ># sh or ksh fragment >newest() { > set -- ls -t $* 2>/dev/null > echo $1 > } >oldest() { > set -- ls -rt $* 2>/dev/null > echo $1 > } Can you have functions in Bourne Shell scripts? I thought this was only available in Ksh.