[Top][All Lists]

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

Re: cvs-1.11 make check fails

From: Lars Hecking
Subject: Re: cvs-1.11 make check fails
Date: Fri, 19 Jan 2001 18:42:44 +0000
User-agent: Mutt/1.3.13i

> > Anyone know why the above sed command wouldn't be portable?  And the
> > associated one:
> > 
> >     username=`id | sed 's/^uid=[0-9]*(\([^)]*\)).*$/\1/'`
> If I were going to do it, I'd use expr rather than sed, but that's
> irrelevant because SUS2 says that the "uid" string is locale-specific,

 What about id | cut -d'(' -f1 | cut -d'=' -f2 ?

> so you can't depend on it.  Only ancient versions of id don't support -u
> and -n -- I don't know why Sun insists on making their antique tools the
> default when they supply a perfect good set of standards-conforming ones
> in /usr/xpg4/bin.  Anyone trying to run the test suite on Sun would be
> well advised to put /usr/xpg4/bin at the front of their path first.
 Yeah, some of Sun's tools suck greatly - [ef]grep, patch etc. too.


"Lately, the only thing keeping me from being a serial killer
is my distaste for manual labor." -- Dilbert

reply via email to

[Prev in Thread] Current Thread [Next in Thread]