-   Linux - Newbie (
-   -   setenv not working??? (

birjodh 06-06-2007 05:50 PM

setenv not working???
hi all,
m using this command
setenv PATH /home/tupac/codeploy:$PATH
but it shows setenv:command not found
wat to do???
plz helpppppp:confused:

birjodh 06-06-2007 05:52 PM

nd i after that i have to do
which is also not working.. same problem , command not found

frob23 06-06-2007 05:54 PM

You aren't using the csh or tcsh. You are using something else.

try "echo $SHELL" to see which one.

birjodh 06-06-2007 05:55 PM

it is bash..

birjodh 06-06-2007 06:04 PM

wats the alternate??

forrestt 06-06-2007 06:10 PM

Do you want to use tcsh/csh or do you want to continue using bash? If you want to continue using bash, type:

export $PATH

If you want to use tcsh/csh, then you will need to change your shell to the one you want.


chsh -s tcsh

masonm 06-06-2007 06:10 PM


1. Try using actual English

2. It would help to know what distro you're using

birjodh 06-06-2007 06:23 PM

ok.. i am using bash only but here is the output on

/home/tupac/codeploy:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/tupac/bin': not a valid identifier

birjodh 06-06-2007 06:27 PM

and when i am trying to change the shell to tcsh or csh it is showing that shell has been changed succesfully but when i am checking it with echo $SHELL it is still bash..

forrestt 06-06-2007 07:05 PM

Sorry, when you change your shell, it will only take effect on your next login. Log out and back in after you run chsh.

birjodh 06-06-2007 07:15 PM

thanks a lot. it worked:)

forrestt 06-06-2007 07:23 PM

It seems I was mistaken as well as regard to the export. It isn't necessary in bash.

birjodh 06-07-2007 12:51 AM

may be....

All times are GMT -5. The time now is 02:34 AM.