* Copyright (c) 1988, 1993, 1994
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char copyright
[] =
"@(#) Copyright (c) 1988, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
static char sccsid
[] = "@(#)env.c 8.3 (Berkeley) %G%";
while ((ch
= getopt(argc
, argv
, "-")) != EOF
)
"usage: env [-] [name=value ...] [command]\n");
for (argv
+= optind
; *argv
&& (p
= strchr(*argv
, '=')); ++argv
)
(void)setenv(*argv
, ++p
, 1);
for (ep
= environ
; *ep
; ep
++)
(void)printf("%s\n", *ep
);