Unable to define environment variables through shell script in csh

Solution Verified - Updated -

Issue

  • Unable to set environment variables through shell script in csh shell.
  • setenv command is not able to set environment variable when used in script.

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • tcsh-6.17-19.el6_2.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In