Thread: Word too long
Manage your shell environment variables and aliases
Brought to you by:
leomania,
xdelaruelle
From: Henrik W. <hen...@er...> - 2000-03-17 10:56:45
|
Hi How many characters can a env. variable contain in tcsh ? We have many tools in our ASIC design flow and designers very often gets this " Word too long" problem. I tried using "wrapper-scripts" instead of setting the PATH, but it's not feasible to create and maintain a couple of hundred wrappers. Someone solved this problem ? Is there a shell that does support "bigger" variable sizes. /Henrik Westrell +---------------------------------------------------------------+ | Henrik Westrell Methods & Tools | | | | ERICSSON RADIO SYSTEMS AB hen...@er... | | Torshamnsgatan 30A Telephone: +46 (0)8 40 45575 | | SE-164 80 STOCKHOLM Fax: +46 (0)8 752 9793 | | SWEDEN Cellular: +46 (0)70 590 8968 | +---------------------------------------------------------------+ |
From: Assar W. <as...@si...> - 2000-03-17 15:07:19
|
Henrik Westrell <hen...@er...> writes: > How many characters can a env. variable contain in tcsh ? Typically 1024. > Someone solved this problem ? Either just bump BUFSIZE in sh.h and re-build tcsh, or > Is there a shell that does support "bigger" variable sizes. find a shell without this problem such as bash or zsh. /assar |
From: Dave B. <ba...@ho...> - 2000-03-17 16:21:37
|
Henrik: Due to the length of our paths to executables, and the number of paths we must use, we have had to go the route of updating 'BUFSIZE' from 1024 (the default) to 8192 (we probably could get away with 2048, but figured that with 8192 we wouldn't have to rebuild for a while). Our other problem was that /bin/csh was used for a lot of our build process, but 1024 characters were not enough, so we've switched out our /bin/csh for an enhanced version of tcsh. Our shell is no longer a holdup in this regard (some of the other tools, however ....). Cheers, Dave -- Dave Barnett Software Support Engineer x1434 Never attribute to malice what could fairly be attributed to stupidity. |
From: Leo B. <le...@le...> - 2000-03-17 18:16:56
|
Henrik Westrell wrote: > How many characters can a env. variable contain in tcsh ? > > We have many tools in our ASIC design flow and designers > very often gets this " Word too long" problem. I tried using > "wrapper-scripts" instead of setting the PATH, but it's not > feasible to create and maintain a couple of hundred wrappers. Good day, Henrik. Others have already tackled the env size question, but I'm curious as to how you ended up with a couple of hundred unique applications in an ASIC environment. I've seen a few different environments over the years but none of the companies have had more than twenty-five applications (give or take) to support. Multiple versions, to be sure, but one wrapper usually took care of that. Just curious! Cheers, - Leo |
From: Mark L. <la...@mi...> - 2000-03-17 19:10:27
|
Just for clarification, the limit is not on the environment variable length (since env vars are shell independent). The limit is on the input command line of tcsh. If you append to PATH, setenv PATH ${PATH}:/blah/blah and path is already about 1000 characters, then this command will fail, since the whole line expands to more than 1024 characters. In tcsh (i've got 6.09.00), edit "config_f.h" and change it to read '#define BUFSIZE 0x10000.' and recompile. -Mark Mark Lakata MIPS Technologies 1225 Charleston Road Mountain View, CA 94043 phone 650-567-5170 fax 650-567-5002 email la...@mi... On Fri, 17 Mar 2000, Henrik Westrell wrote: > Hi > > How many characters can a env. variable contain in tcsh ? > > We have many tools in our ASIC design flow and designers > very often gets this " Word too long" problem. I tried using > "wrapper-scripts" instead of setting the PATH, but it's not > feasible to create and maintain a couple of hundred wrappers. > > Someone solved this problem ? > Is there a shell that does support "bigger" variable sizes. > > /Henrik Westrell > > +---------------------------------------------------------------+ > | Henrik Westrell Methods & Tools | > | | > | ERICSSON RADIO SYSTEMS AB hen...@er... | > | Torshamnsgatan 30A Telephone: +46 (0)8 40 45575 | > | SE-164 80 STOCKHOLM Fax: +46 (0)8 752 9793 | > | SWEDEN Cellular: +46 (0)70 590 8968 | > +---------------------------------------------------------------+ > > > |
From: Henrik W. <hen...@er...> - 2000-03-20 11:02:22
|
Hi all Thanks all, for helping me with my PATH problem ... We recomplied tcsh with BUFSIZE = 2k Nemas Problemas ! Regards, Hemrik -- +---------------------------------------------------------------+ | Henrik Westrell Methods & Tools | | | | ERICSSON RADIO SYSTEMS AB hen...@er... | | Torshamnsgatan 30A Telephone: +46 (0)8 40 45575 | | SE-164 80 STOCKHOLM Fax: +46 (0)8 752 9793 | | SWEDEN Cellular: +46 (0)70 590 8968 | +---------------------------------------------------------------+ |