Solved

setenv buffer limit in csh

Posted on 1997-01-15
2
1,723 Views
Last Modified: 2013-12-26
It appears that there is a problem using setenv in csh. If I setenv on a variable and the data value is more than some amount of predefined characters (probably 1024), I get the following error from csh:  "Word too long."

Is there a way I can get around this problem ? The reason is that I have a file that I sourced. Inside this file is a number of setenv statements. After sourcing this file, the script calls up a GNU Makefile with those env. variables passed into it.
0
Comment
Question by:tbtran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
Klaas082598 earned 30 total points
ID: 1292357
This seems to be a hardcoded limit in both csh and also in tcsh (a public domain (better) csh).
Sidenote: ksh and sh have no problems with longer than 1024 env var's. Maybe their limit is higher.
So one solution could be to rewrite everything to use sh or ksh.

But i don't understand the question completely:
If the setenv statements worked in the first
place, how can they not work lateron ?
What has make got to do with it ?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1292358
This could also be a kernel parameter.
On IRIX 5.x you may change it with the systune command,
see man systune, parameter  nc_args.
On SunOS 4.x there is also a kernel parameter, but the kernel
must be rebuild to change it.
I'm not shure, but there was something similar on Solaris.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question