On Fri, May 20, 2005 at 09:54:13PM +0200, Chris Roccati wrote:
On May 20, 2005, at 21:23 , Diego Biurrun wrote:
On Fri, May 20, 2005 at 08:48:12PM +0200, Chris Roccati wrote:
There's something totally wrong in using something like: last_cvs_update=`perl -e 'use POSIX qw(strftime); print strftime "%y% m%d-%H:%M\n", localtime((stat "CVS/Entries")[9])'`
I don't understand, what are you trying to say here?
What I'm trying to say is why try to cope with the apparently endless variations of output from the various version of ls, using arcane incantations based on cut/awk/sed/whatever, when a single line of perl will do?
You're not seriously claiming that cut/awk/sed/etc are more obscure than Perl, are you? ;-)
Expecially considering that perl is provided in almost every unix- like currently available?
Almost is not good enough. MPlayer runs on platforms where Perl is not necessarily available. But the main problem is that it would add another dependency to MPlayer when we try to keep external dependencies down. I'm going to ignore OS X 10.3 since its ls is clearly buggy, so our problem is solved already anyway. Diego