BB Unix Network Monitor - Message

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

RE: {bb} BB fix/patch for bin utils?



Since this is largely (exclusively?) for BB et al, perhaps a wrapper
would do; here's a crude one for $TAIL (e.g. "tailwrapper") that might
work:

if [ "`echo "$1" | $GREP '\-[0-9]'`" ]; then
        /usr/bin/tail -n `echo $1 | $SED 's/-//'` $2 $3 $4 $5
else
        /usr/bin/tail $*
fi

Better yet, have you tried putting the following line in your
bbsys.local?
export _POSIX2_VERSION=199209
A google search for 'head tail "option is obsolete"' suggests it.
Try 'coreutils standards conformance' for more info.

BB supports some old UN*Xes, rewriting $HEAD and $TAIL to use -n could
(would?) break things the other direction. There *could* be some magic
with a parameter for HEAD/TAIL to use -n (or HEADN='/usr/bin/head -n '
vs HEADN='/usr/bin/head -') but if a _POSIX2_VERSION setting is
adequate...

>>> kmckinnis@macrovision.com 12/6/2004 15:03:11 >>>
You must have missed my original posts... I used 
find . -name "*.sh" -exec egrep -ibH "tail -[^n]" {} \;
and
find . -name "*.sh" -exec egrep -ibH "head -[^n]" {} \;
To show where it's being used. Unless I'm misunderstanding what you're
saying. I have already manually changed it on several hundred
machines... 

And I'm running Gentoo Linux. The bbconfig generally doesn't like
gentoo
as an input and just uses Linux. 
*sigh*
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index