Solved

setenv buffer limit in csh

Posted on 1997-01-15
2
1,647 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 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 67
ffmpeg - "rtsp://...... Operation not permitted" 4 68
lucky13 challenge 11 112
Fibonacci challenge 11 82
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now