Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!olivea!oliveb!amdahl!krs From: krs@uts.amdahl.com (Kris Stephens [Hail Eris!]) Newsgroups: comp.unix.shell Subject: Re: Comparing modified times of files Message-ID: <787r01De4aF300@amdahl.uts.amdahl.com> Date: 26 Mar 91 15:37:52 GMT References: <930001@mjm.mjm.com> <6350@amc-gw.amc.com> <6067@iron6.UUCP> Reply-To: krs@amdahl.uts.amdahl.com (Kris Stephens [Hail Eris!]) Organization: Amdahl Corporation, Sunnyvale CA Lines: 23 In article <6067@iron6.UUCP> yeates@motcid.UUCP (Tony J Yeates) writes: >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. Well, it works in my Bourne shell. :-) ...Kris -- Kristopher Stephens, | (408-746-6047) | krs@uts.amdahl.com | KC6DFS Amdahl Corporation | | | [The opinions expressed above are mine, solely, and do not ] [necessarily reflect the opinions or policies of Amdahl Corp. ]