[MPlayer-dev-eng] [PATCH] fix for textultils 2.1 coreutils 5.0 "-1" deprecation

Paul Jarc prj at po.cwru.edu
Wed Jul 9 19:52:30 CEST 2003


D Richard Felker III <dalias at aerifal.cx> wrote:
> Unless you're *SURE* switching to the sed trick will work correctly
> on *ALL* systems

I'm fairly sure.  I'm more confident in sed than in a script that
tries to determine which head and tail are installed, and dynamically
chooses between -1 or -n 1 accordingly; sed is much less fragile.  The
same change has already been made in several other packages.

> BTW, can you quote something from POSIX where it says -1 is not
> supposed to work??

<URL:http://www.opengroup.org/onlinepubs/007904975/utilities/head.html>:
"The obsolescent -number form is withdrawn."


paul



More information about the MPlayer-dev-eng mailing list