diff options
author | Rob Landley <rob@landley.net> | 2020-11-14 23:39:18 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-11-14 23:39:18 -0600 |
commit | 52bbc1e0a410b44a926b04aaae3b00f9f50da81e (patch) | |
tree | a909959953794b6faafc2731b1bcccfbb5faf941 /toys | |
parent | 3e28f611e452b52b21360c56dbf250d242bbb4a5 (diff) | |
download | toybox-52bbc1e0a410b44a926b04aaae3b00f9f50da81e.tar.gz |
Allow 0 prefix to optstr to include argv[0] in optargs[0].
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/env.c b/toys/posix/env.c index 7b944f07..750ba49a 100644 --- a/toys/posix/env.c +++ b/toys/posix/env.c @@ -6,7 +6,7 @@ * * Deviations from posix: "-" argument and -0 -USE_ENV(NEWTOY(env, "^0iu*", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(125))) +USE_ENV(NEWTOY(env, "^i0u*", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(125))) config ENV bool "env" |