Bug 120874 - iproute2-051007 - ip doesn't support command shortening anymore
Bug#: 120874 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: jjminar+bgo@fastmail.fm
Component: Core system
URL: 
Summary: iproute2-051007 - ip doesn't support command shortening anymore
Keywords:  
Status Whiteboard: 
Opened: 2006-01-29 14:48 0000
Description:   Opened: 2006-01-29 14:48 0000
ip(8) used to support command shortening, so one could do things like ``ip r''
or ``ip r a default via 10.0.0.2''.  I use it in all my scripts, so now not
even the loop device is set up after bootup.  Gosh this was just about the
sexiest feature of the FLOSS world.

Example of what should work but doesn't:

$ ip r
Object "r" is unknown, try "ip help".

Instead, one has to say:

$ ip route
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.13 
default via 10.0.0.2 dev eth0

------- Comment #1 From Jakub Moc (RETIRED) 2006-01-29 14:52:18 0000 -------
Reopen with iproute2 version...

------- Comment #2 From Jan Minar 2006-01-29 15:52:10 0000 -------
(In reply to comment #1)
> Reopen with iproute2 version...

$  eix iproute | grep Installed:
     Installed:           051007
$ ip -V
ip utility, iproute2-ss051007

------- Comment #3 From SpanKY 2006-01-29 16:40:16 0000 -------
well `ip r` wouldnt work now anyways as there is 'route' and 'rule' ...

------- Comment #4 From Jan Minar 2006-01-29 17:15:49 0000 -------
(In reply to comment #3)
> well `ip r` wouldnt work now anyways as there is 'route' and 'rule' ...

I've seen the shortened versions so many times it didn't occur to me the
interface could change.  Is this a feature then?  So that it's clear the syntax
is ``ip route'', not ``ip r'', and scripts I write today will work forever
without alterations?

I would prefere whatever worked yesterday would work today, the new keywords
*addign* to the syntax, not *replacing* parts of it.  E.g.:

    r -> route
    ru -> rule

------- Comment #5 From SpanKY 2006-01-29 18:00:03 0000 -------
looks like a bad example

iproute2-2.6.10.20050112-r1 supports both 'rule' and 'route' but 'ip r'
defaults to route as you showed

------- Comment #6 From SpanKY 2006-01-29 19:10:55 0000 -------
aaaaaand this is a bug as newer versions support `ip r` again ;)

upgrade to 2.6.15.20060110