Derek R. Price writes:
> 
> No it isn't.  It just errors out if it can't find an id it thinks is GNU.

Well, the fact that it didn't detect the problem and report it in a
sensible way but just went blithely on until it fell over and died is
fixed.

> 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,
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.

-Larry Jones

What's the matter?  Don't you trust your own kid?! -- Calvin

_______________________________________________
Bug-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-cvs

Reply via email to