Quote:
So, if I was using the .cshrc file for the bash I had in 7.2, but it appears non-existing in 7.3, I guess it means it is a different shell type.
|
You cannot use .cshrc when using a bash shell. Every shell type has its own startup files.
To find out which files are used by a shell take a look at the manpage(s). At the bottom (FILES section) the files used are mentioned. Also take a look at the INVOCATION (or Startup and shutdown) section. This describes which files are read when the shell is started in a certain 'mode' (login shell, interactive etc).
To give you an idea which files can be read, using the bash shell as example:
/etc/profile
~/.bash_profile
~/.bashrc
~/.bash_logout
~/.inputrc
Quote:
How can I find what type of shell is?
|
Take a look at your /etc/passwd file, last field shows the shell that's used. Most distro's use the bash (/bin/bash) as the default shell.
BTW: Do _not_ rely on the SHELL variable setting. If you are in a bash shell (SHELL=/bin/bash) and start a csh shell from this bash shell, the SHELL variable still holds SHELL=/bin/bash ............
Quote:
And then, what kind of similar to .cshrc file could it be in there?
|
See first part of this reply.
Quote:
And/how what commands similar to set/setenv could I find there?
|
Take a look at bathory's example for a bash/ksh shell, see my example for a (t)csh shell.
Quote:
If I use "setenv", it only allows me to set a value or string to a variable. If I want to add to the variable PATH all the paths I want to put, it only allows it with "set", where I can add all the strings I want to.
|
It's probably easier if we know what shell it is you are using before starting with examples.
How shells work and what they can do is an important part of understanding linux/unix. Do read the manpages and other shell related info on the net. There are also some excelent books covering this topic.
If you have any more questions: Just ask
Hope this clears things up a bit.