LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Shell script works on RH 7.2 but not on RH ES (https://www.linuxquestions.org/questions/red-hat-31/shell-script-works-on-rh-7-2-but-not-on-rh-es-224770/)

brian 08-31-2004 08:30 AM

Shell script works on RH 7.2 but not on RH ES
 
Here is a simple script that I cannot get working on RH ES, I tried it at home on Fedora with no success also. But it works on RH 7.2.

Code:

#!/bin/csh

setenv PWD='pwd'
echo $PWD

When I try executing this script on ES I get:

setenv: Syntax Error.

This is a pretty simple script and I'm at a loss as to why it's not working.

slackie1000 08-31-2004 11:55 AM

yours..

Code:

#!/bin/csh

setenv PWD='pwd'
echo $PWD


try without the equal sign...

Code:


#!/bin/csh

setenv PWD 'pwd'
echo $PWD

regards

slackie1000


All times are GMT -5. The time now is 11:21 PM.