This patch allows partial matching of ip subcommands, e.g. "ip a" instead of "ip addr". Have fun and use it. Georg Lukas , 2005-10-21 diff -uNr iproute2-051007/ip/ip.c iproute2-051007-abbrev/ip/ip.c --- iproute2-051007/ip/ip.c 2005-10-07 18:41:34.000000000 +0200 +++ iproute2-051007-abbrev/ip/ip.c 2005-10-21 18:29:45.000000000 +0200 @@ -81,7 +81,7 @@ const struct cmd *c; for (c = cmds; c->cmd; ++c) - if (strcmp(c->cmd, argv0) == 0) + if (strncmp(c->cmd, argv0, strlen(argv0)) == 0) return c->func(argc-1, argv+1); fprintf(stderr, "Object \"%s\" is unknown, try \"ip help\".\n", argv0);