Path: utzoo!utgpu!water!watmath!clyde!att!alberta!oha!tony
From: tony@oha.UUCP (Tony Olekshy)
Newsgroups: comp.unix.questions
Subject: Here's /bin/env. (was: environment size question).
Summary: main(c,a,e)char*a[],*e[];{while(0!=*e){puts(*e++);}exit(0);}
Keywords: bug-fix /bin/env 100-variable-limit
Message-ID: <249@oha.UUCP>
Date: 11 Jul 88 09:26:41 GMT
References: <4717@killer.UUCP> <1124@sauron.Columbia.NCR.COM>
Organization: Olekshy Hoover & Associates Ltd., Edmonton,Alberta,Canada
Lines: 17

In a recent article, Mike Wescott writes:
>
> In article <4717@killer.UUCP> jockc@killer.UUCP (Jock Cooper) writes:
> >
> > Is there a way to increase the size of the environment variable table?
> > My implementation allows only 100, and I need more.
> ...
> There is no limit in your /bin/sh for 100 environment variables. ...  It's in
> /bin/env and not the shell. ...  It'll print the garbage "after" the 100th
> variable.

So I says to him, I says:

    #include 
    main(c,a,e) char *a[],*e[]; { while (*e!=0) { puts(*e++); } exit(0); }

Yours, etc., Tony Olekshy (alberta!oha!tony, tony@oha.UUCP).