1
vote
4answers
164 views

How do I run a program in a fresh shell?

I have a program that does a LOT of env manipulation. It sets PYTHONPATH and LD_LIBRARY_PATH and stuff like that. This program needs to run ANOTHER program, but in a fresh env, without all of the ...
1
vote
3answers
973 views

How to change shells via script?

I have to repeat following operation a lot of times, hence I want to automate it. sudo su tcsh cd $workDir Here $workDir is set in ~/.tcshrc. I tried writing two shells scripts. Script1 is temp.sh ...
5
votes
2answers
579 views

Can a home directory have both .cshrc and .bashrc files?

Or are they both not allowed at the same time?
2
votes
3answers
1k views

cshrc execute bashrc within itself?

My school has our Linux accounts using csh/tcsh by default. I, however, have a lot setup on my home bashrc and I'd like to use that at school. BUT there's also some important stuff that happens in our ...
3
votes
5answers
1k views

Does $SHELL store the path to the default shell in Linux?

My administrator says that my default shell is set to bash, but $ echo $SHELL /bin/csh $ Is the default shell related to the SHELL variable at all? Is not, what is the variable used for?