Line 87 of env.c should be for (ep = environ; ep && *ep; ep++) { instead of for (ep = environ; *ep; ep++) { or plain "env -" segfaults. Also, wonder how one can clear current environment within a shell script? -- Vladimir