From: Bruno H. <br...@cl...> - 2017-03-21 23:30:16
|
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 |