Re: [net-snmp:code] treewide: Terminate netsnmp_feature_*() uses with a semicolon
Bill Fenner via Net-snmp-coders <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAF4SogYpc6CYRPMsTCP=SmCFbW5qGJznsv48aWRTgBBFWypQaA@mail.gmail.com> |
On Mon, Aug 26, 2019 at 4:51 PM Bart Van Assche <[email protected]> wrote: > On 8/26/19 12:59 PM, Bill Fenner wrote: > > Just as a personal preference, I like to use "awk" instead of grep|... - > > "awk '/NSF_WW/ {print $1}' $tmpf" gives the same result and doesn't care > > about the presence or absence of the semicolon - but, I don't know about > > Windows: if grep and sed are available, is awk? > > Hi Bill, > > The number of platforms supported by Net-SNMP is large. Each of these > platforms comes with its own version of grep, sed and awk. Cygwin, MinGW > and MinGW64 include GNU versions of grep, sed and awk so these platforms > are not my biggest worry. I'm more worried about *BSD, Solaris and AIX. > So my preference here is to be conservative and keep the changes as > small as possible. > awk was available a surprisingly long time ago ("The AWK Programming Language" was published in 1988), but you're right that less churn is probably safer. Bill _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders