Porting alias file to from solaris to linux tcsh
Hi,
Forgive a very newbie question, I'm kind of baffled that I can't find a quicker answer to this. So, I've got a .tcshrc file that I'm porting from my old solaris machine to my new iMac (running the factory-loaded linux) and it has a line in it like this alias lrrt 'ls -lrt' When I launch a new tcsh, or source this .tcshrc file manually from a tcsh prompt, and then try to issue the alias with no arguments, here's what I get; <my_iMac_tcsh_prompt> % lrrt :No such file or directory I've also tried this; alias lrrt 'ls -lrt \!*' which has the same effect. Note that if I execute the alias directly at the tcsh prompt, and then use it with no arguments, it works <my_iMac_tcsh_prompt> % alias lrrt 'ls -lrt' <my_iMac_tcsh_prompt> % lrrt total 72 drwxr_xr_x 183 blah blah 6222 Sep 9 13:39 some_directory drwxr_xr_x 5 blah blah 179 Sep 13 14:44 some_other_directory [etc.] Any suggestions or explanations about what is going on here would be truly appreciated - C |
Quote:
alias foo='bar' ... i.e. the bash way of doing things? |
So, sure, I could convert all of my .alias file, and the large directory of scripts I also imported from my old solaris account, to bash. That represents a lot of work though, and before doing that, I'd rather understand what is wrong with the way I'm attempting to set up the alias in the tcsh. I guess I would expect tcsh in solaris and tcsh under linux to work largely the same, and where they are different, the manpages should be explicit.
A gripe I have is that the bsd manpage for the built-ins is so dismissively terse that it's not helpful here - "Users of other shells will need to consult the documentation supplied with the other shells." Maybe I need to set some path up in tcsh in order to see the relevant manpages? |
All times are GMT -5. The time now is 01:35 PM. |