From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60809100821h158e55fdo89c3c7f61099bd13@mail.gmail.com> Date: Wed, 10 Sep 2008 08:21:46 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <13426df10809100638s4680e934gca40c7cffcdfae4b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_148169_27177356.1221060106493" References: <55D86CE8-C424-4C7C-9748-84AA62D3F2A4@ar.aichi-u.ac.jp> <13426df10809100638s4680e934gca40c7cffcdfae4b@mail.gmail.com> Subject: Re: [9fans] test command Topicbox-Message-UUID: 0e8ff292-ead4-11e9-9d60-3106f5b1d025 ------=_Part_148169_27177356.1221060106493 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Sep 10, 2008 at 6:38 AM, ron minnich wrote: > On Wed, Sep 10, 2008 at 3:19 AM, Kenji Arisawa > wrote: > > Hello, > > > > "test" command of plan 9 has a operator "older", the usage is: > > test f -older t > > where f is a file and t is a time. > > however the command does not have "newer" operator. > > why? > > > > If a < b, and you want to know if b > a, can't you just do a < b? > > ron > > Yeah with < and ! you can build anything you want :-) Hence why many C++ STL comparisons just require you to make a functor for less. Dave ------=_Part_148169_27177356.1221060106493 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


On Wed, Sep 10, 2008 at 6:38 AM, ron minnich <rminnich@gmail.com> wrote:
On Wed, Sep 10, 2008 at 3:19 AM, Kenji Arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
> Hello,
>
> "test" command of plan 9 has a operator "older", the usage is:
>        test f -older t
> where f is a file and t is a time.
> however the command does not have "newer" operator.
> why?
>

If a < b, and you want to know if b > a, can't you just do a < b?

ron


Yeah with < and ! you can build anything you want :-)

Hence why many C++ STL comparisons just require you to make a functor for less.

Dave
------=_Part_148169_27177356.1221060106493--