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?
- To: <bb@bb4.com>
- Subject: RE: {bb} BB fix/patch for bin utils?
- From: "Kimberly McKinnis" <kmckinnis@macrovision.com>
- Date: Wed, 8 Dec 2004 11:55:25 -0800
- Content-class: urn:content-classes:message
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset="us-ascii"
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- Thread-index: AcTcD5108MwCEhBvQMG3YPgsd4tMPwBUBXyg
- Thread-topic: {bb} BB fix/patch for bin utils?
Using export _POSIX2_VERSION=199209 fixed my problem :)
You know, I did a fairly extensive Google search, but by that point I
was so sick of staring at my screen and frustrated, that I easily missed
things. Thank you Richard :)
~~
Kimberly McKinnis
Network Engineer, ETG
Macrovision Corporation
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Richard
Finegold
Sent: Monday, December 06, 2004 7:19 PM
To: bb@bb4.com
Subject: 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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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