Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

setenv buffer limit in csh

Posted on 1997-01-15
2
Medium Priority
?
1,763 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
2 Comments
 

Accepted Solution

by:
Klaas082598 earned 60 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

963 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