Desired behaviour of "ifconfig -alias"
olli at lurza.secnetix.de
Tue Feb 13 18:42:14 UTC 2007
Freddie Cash wrote:
> Oliver Fromme wrote:
> > If asked what "-alias" does, I would reply that it is an
> > alias for "delete" or "remove", which removes an IP address
> > from an interface. According to the docs, the IP address
> > to be removed must be specified. The docs don't mention
> > what happens if none is specified, so the behaviour is
> > undefined and should not be relied on. It just happens
> [insert tongue into cheek]
> Hmmm, so if the behaviour is undefined, and should not be relied upon,
> why is everyone arguing to keep it as they rely upon it? :)
Good question. Personally I use that "feature" only at the
shell prompt (interactively) because it saves typing and
potentially reduces typing errors. And I see imemdiately
if it fails or produces unexpected results.
In scripts I always use the documented syntax, so there's
> If no one should be relying upon this undefined behaviour, then why
> not fix it and make it reliable?
Exactly. That's what I'm suggesting. Fix the manual page,
so the behaviour isn't undefined anymore, thus make it
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"I started using PostgreSQL around a month ago, and the feeling is
similar to the switch from Linux to FreeBSD in '96 -- 'wow!'."
-- Oddbjorn Steffensen
More information about the freebsd-stable