Re: using "head -n 1" instead "head -1"?

On Fri, 2009-11-20 at 13:49 +0800, 代尔欣 wrote:
> Hi all,
>    Not sure this has been mentioned before? NM0.7.1.998 configure
> script when check intltool with:
> INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut
> -d" " -f3`
> It use "head -1". Better using "head -n 1" instead? "head -1" will get
> error in some environment.
> "head: `-1' option is obsolete; use `-n 1'" 
> and make the configure failed.
> So in the m4/intltool.m4.

Ah; this isn't in git but I believe is generated by the build process.
So you wouldn't get this problem if you did a 'make distcheck' from the
git sources yourself.  I'll keep this in mind when making future


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]