[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new options for ifconfig
* Philipp Buehler <OpenBSD@fips.de> [02-07-28 13:09]:
> > broadcast address or netmask. This makes it _much_ easier for shell
> > scripts etc. to find out these values. I don't know if this is cleanly
> > integrated into ifconfig, but I think you can recognize the intention.
> Maybe you should learn more about sh/awk/whatever scripting.
In fact, it was not my idea. Sven Guckes (of vim, mutt, slrn, screen fame)
actually asked for such options in a discussion in a newsgroup, when he
saw really ugly grepping for IP addresses the 100th time.
> Usually one uses shell-scripts for crossplattform tasks. Do you send
> such patches to HP, Sun, IBM, .... on this behalf as well?
As ifconfig is different on every platform, you can't use it for
crossplatform tasks, anyway (not without lots of hassle). BTW, I wrote
the same kind of patch for net-tools (for Linux), implementing the same
> On the point of coding, get a grip on case switches.
I wouldn't have made smaller the (source) code. TIMTOWTDI, BTW. This
applies to more languages than just Perl.
Ich rede von der LART-Parade. Zeitgleich zur Love-Parade, selbe Strecke,
-- Andreas Riedel in dasr