From 52bbc1e0a410b44a926b04aaae3b00f9f50da81e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 14 Nov 2020 23:39:18 -0600 Subject: Allow 0 prefix to optstr to include argv[0] in optargs[0]. --- toys/posix/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') 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" -- cgit v1.2.3