9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Easy stating of newer files on Plan9
@ 2011-05-14 21:25 tlaronde
  2011-05-14 21:55 ` Anthony Martin
  0 siblings, 1 reply; 3+ messages in thread
From: tlaronde @ 2011-05-14 21:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I have finished to add MetaPost to kerTeX and I'm testing and polishing.

My aim is to have something strictly C89.

There is one utility used by MetaPost scripts: a binary "newer" using
POSIX (sys/stat.h) mainly because if on POSIX compliant systems one can
use find(1) with "-cnewer", Plan9 has not find(1).

3 options:

1) Let this POSIX exception "newer";

2) Drop this optimization (AFAIK) in the scripts;

3) Patch the scripts with "find..." for not Plan9, and
some ls, cut, whatever line for Plan9 just for consistency.

My preference is 3).

What would be the prefered way using utilities available on Plan9 (and
accessible for ape/sh) since the scripts are Bourne shell ones.

TIA
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Easy stating of newer files on Plan9
  2011-05-14 21:25 [9fans] Easy stating of newer files on Plan9 tlaronde
@ 2011-05-14 21:55 ` Anthony Martin
  2011-05-15  6:52   ` tlaronde
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Martin @ 2011-05-14 21:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

tlaronde@polynum.com once said:
> There is one utility used by MetaPost scripts: a binary "newer" using
> POSIX (sys/stat.h) mainly because if on POSIX compliant systems one can
> use find(1) with "-cnewer", Plan9 has not find(1).
>
> [...]
>
> What would be the prefered way using utilities available on Plan9 (and
> accessible for ape/sh) since the scripts are Bourne shell ones.

The Plan 9 test(1) has "newer than" and "older than"
expressions just like the Korn shell's built-in.

  Anthony



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Easy stating of newer files on Plan9
  2011-05-14 21:55 ` Anthony Martin
@ 2011-05-15  6:52   ` tlaronde
  0 siblings, 0 replies; 3+ messages in thread
From: tlaronde @ 2011-05-15  6:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sat, May 14, 2011 at 02:55:20PM -0700, Anthony Martin wrote:
> tlaronde@polynum.com once said:
> > There is one utility used by MetaPost scripts: a binary "newer" using
> > POSIX (sys/stat.h) mainly because if on POSIX compliant systems one can
> > use find(1) with "-cnewer", Plan9 has not find(1).
> >
> > [...]
> >
> > What would be the prefered way using utilities available on Plan9 (and
> > accessible for ape/sh) since the scripts are Bourne shell ones.
>
> The Plan 9 test(1) has "newer than" and "older than"
> expressions just like the Korn shell's built-in.

Thanks! test a -nt b will do.
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-15  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-14 21:25 [9fans] Easy stating of newer files on Plan9 tlaronde
2011-05-14 21:55 ` Anthony Martin
2011-05-15  6:52   ` tlaronde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).