aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/pgrep.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-08-18 16:12:28 -0500
committerRob Landley <rob@landley.net>2013-08-18 16:12:28 -0500
commit9fbd5ef63087f0825ef9903e05a8afdc6b76166f (patch)
treeee7e2126c33b4eefd8afbe972b1b6e75ef159360 /toys/pending/pgrep.c
parent270483405021e237f54ffe6d02eecf11744fd1aa (diff)
downloadtoybox-9fbd5ef63087f0825ef9903e05a8afdc6b76166f.tar.gz
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.)
Diffstat (limited to 'toys/pending/pgrep.c')
-rw-r--r--toys/pending/pgrep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/pgrep.c b/toys/pending/pgrep.c
index a96a1df0..77b6cede 100644
--- a/toys/pending/pgrep.c
+++ b/toys/pending/pgrep.c
@@ -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"