The alias command takes two arguments: (1) the word to substitute (2) the substitution
Your aliases would allow you to type "hist ssh", for example, to see your previous commands containing "ssh". tcsh takes "hist" and replaces it with "cat ~/.bash_history | grep", meaning "cat ~/.bash_history | grep ssh" is what actually gets executed. (For more information on cat and grep, see their man pages.) A couple more notes about your aliases: (1) You can place them in .cshrc. (2) You should only use one of the two aliases - if you are using tcsh, then use the one with .tcsh_history. The .bash_history file is for a different shell. Regarding the .tcshrc and .cshrc collision: this is how tcsh was programmed. It allows users of csh and tcsh to make the environments as similar as possible. See the "Startup and shutdown" section of man tcsh for more information. If you have any more questions, please email me off the list. -Daniel On Wed, 13 Nov 2002, guy lauquin wrote: > Thank you, I removed the file ~/.tcshrc and it worked; I was able to > update fink to the 4.2.1.1 version. I am now trying to figure out > what is the meaning of the content of this file: > alias hist 'cat ~/.tcsh_history | grep' > alias hist 'cat ~/.bash_history | grep' > > and why was it badly interfering with the .cshrc file? > any idea? > > guy ------------------------------------------------------- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
