Hi again, On Tuesday, November 26, 2002, at 12:18 PM, Birdy Complex wrote:
Hmmm, you've sparked some new observations:If you are using bash, then you have to add ". /sw/bin/init.sh" into your .bashrc (note the . at the beginning).
I don't have a .tcshrc, but I do have .bashrc.
.bashrc contains an alias that's never worked for some reason. (!)
I put the source... line in the .bashrc file, as well. Made a new terminal
window, tried "fink", and it still didn't work.
I ran the "source /sw/bin/init.csh" line by hand, and it worked. So Remi
was right; the owner and permissions for that file are fine.
I also confirmed that I am using bash. Thanks, Remi.
So my new observation is that my .cshrc and .bashrc files are not being
used when I start a new bash shell.
Can anyone tell me why not and how to fix the problem?
Just a bit background information:
csh, tcsh and bash are different shells ("command line environments"). If they start up they look for initialization files in your home directory (and in /etc, too). csh looks for .cshrc, while tcsh looks first for a .tcshrc and if it does not exist takes the .cshrc. tcsh is an extension of csh and is therefore command compatible with csh. Thus it can read the same /sw/bin/init.csh. bash is not compatible with the *csh shells. Therefore you have to use the /sw/bin/init.sh which has the commands for bash. For example bash uses '.' (dot) while *csh uses source to read in a file. The alias command is also slightly different:
*csh: alias foo "your command"
bash: alias foo="your command" (no spaces around =)
For more information on the shells you can look at "man tcsh" or "man bash". Or compare the /sw/bin/init.csh and /sw/bin/init.sh to get an impression what the differences are.
Cheers,
Remi
---------------------------------------------------------------------
I haven't lost my mind - it's backed up on my disk somewhere.
*********************************************************************
Remigius K. Mommsen e-mail: [EMAIL PROTECTED]
University of California, Irvine URL: http://cern.ch/mommsen
c/o SLAC voice: ++1 (650) 926-3595
2575 Sand Hill Road #35 mobile: ++1 (650) 387-1402
Menlo Park, CA 94025, US fax: ++1 (650) 926-8522
*********************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners