Mercurial > hg > toybox
diff toys/toylist.h @ 176:07533cabeede
Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 27 Nov 2007 00:57:42 -0600 |
parents | 56034b162074 |
children | 4b683759de51 |
line wrap: on
line diff
--- a/toys/toylist.h Sat Nov 24 22:05:29 2007 -0600 +++ b/toys/toylist.h Tue Nov 27 00:57:42 2007 -0600 @@ -105,11 +105,13 @@ // The rest of these are alphabetical, for binary search. +USE_BASENAME(NEWTOY(basename, "<1>2", TOYFLAG_BIN)) USE_BZCAT(NEWTOY(bzcat, "", TOYFLAG_USR|TOYFLAG_BIN)) USE_CATV(NEWTOY(catv, "vte", TOYFLAG_USR|TOYFLAG_BIN)) USE_COUNT(NEWTOY(count, "", TOYFLAG_USR|TOYFLAG_BIN)) USE_TOYSH(NEWTOY(cd, NULL, TOYFLAG_NOFORK)) USE_DF(NEWTOY(df, "Pkt*a", TOYFLAG_USR|TOYFLAG_SBIN)) +USE_DIRNAME(NEWTOY(dirname, "<1>1", TOYFLAG_BIN)) USE_DMESG(NEWTOY(dmesg, "s#n#c", TOYFLAG_BIN)) USE_ECHO(NEWTOY(echo, "+en", TOYFLAG_BIN)) USE_TOYSH(NEWTOY(exit, NULL, TOYFLAG_NOFORK))