aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-11-14 23:39:18 -0600
committerRob Landley <rob@landley.net>2020-11-14 23:39:18 -0600
commit52bbc1e0a410b44a926b04aaae3b00f9f50da81e (patch)
treea909959953794b6faafc2731b1bcccfbb5faf941 /toys
parent3e28f611e452b52b21360c56dbf250d242bbb4a5 (diff)
downloadtoybox-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.c2
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"