Compatibility with OpenBSD. Thanks, Steve Dee!

This commit is contained in:
David Galos
2013-07-18 15:28:08 -04:00
parent cd1526715f
commit 0fcb939408
4 changed files with 22 additions and 17 deletions

3
env.c
View File

@@ -14,7 +14,8 @@ main(int argc, char **argv)
{
ARGBEGIN {
case 'i':
clearenv();
if(environ)
*environ = NULL;
break;
case 'u':
unsetenv(EARGF(usage()));