Mercurial > hg > toybox
diff toys/pending/pgrep.c @ 1016:9ee321b6edb5
Use OPTSTR_command macro for more oldtoys, to avoid keeping two option strings in sync. (todo: figure out how to make OLDTOY() automatically use macro. Still need the raw version for subset ala cp/mv though.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 18 Aug 2013 16:12:28 -0500 |
parents | 8b1814e4c987 |
children | 5fac2769a159 |
line wrap: on
line diff
--- a/toys/pending/pgrep.c Sun Aug 18 14:24:59 2013 -0500 +++ b/toys/pending/pgrep.c Sun Aug 18 16:12:28 2013 -0500 @@ -5,7 +5,7 @@ * USE_PGREP(NEWTOY(pgrep, "?P# s# xvonlf[!sP]", TOYFLAG_USR|TOYFLAG_BIN)) -USE_PGREP(OLDTOY(pkill, pgrep, "?P# s# xvonlf[!sP]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_PGREP(OLDTOY(pkill, pgrep, OPTSTR_pgrep, TOYFLAG_USR|TOYFLAG_BIN)) config PGREP bool "pgrep"