Re: TEST_NT hack and OpenBSD

Bruno Haible <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <2410343.oViXqeIqfk@omega>
Hi Jörg,

> Is there really a need to add 1000 lines of code to the repository

I added 1 file with 62 lines of code. The rest were gnulib modules,
which cost us no maintenance (just adds to the size of the tarball and
the 'configure' time).

> Here's what looks like logic that should work across 40 years of UNIXisms
> 
> newer(){ [ -f "$1" ] && ([ ! -e "$2" ] || test -n "`find "$1" -prune -newer "$2"`"); }

This is excellent. I've tested this works even on the old proprietary systems,
such as AIX, HP-UX, Solaris, and even IRIX. And of course on NetBSD, which often
has bugs of its own.

With this, I could remove the 'newer' program!

Bruno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.