changeset 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 27275d0d97e9
children 059e1f30b80b
files toys/pending/pgrep.c toys/posix/chgrp.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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"
--- a/toys/posix/chgrp.c	Sun Aug 18 14:24:59 2013 -0500
+++ b/toys/posix/chgrp.c	Sun Aug 18 16:12:28 2013 -0500
@@ -8,7 +8,7 @@
  * TODO: group only one of [HLP]
 
 USE_CHGRP(NEWTOY(chgrp, "<2hPLHRfv", TOYFLAG_BIN))
-USE_CHGRP(OLDTOY(chown, chgrp, "<2hPLHRfv", TOYFLAG_BIN))
+USE_CHGRP(OLDTOY(chown, chgrp, OPTSTR_chgrp, TOYFLAG_BIN))
 
 config CHGRP
   bool "chgrp/chown"