Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-26-2007, 01:51 PM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Rep: 
|
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
|
|
|
09-26-2007, 02:38 PM
|
#2
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
Quote:
Originally Posted by chrisrose21117
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
|
I'm not in front of a mac right now, but have you tried
alias foo ='bar'
... i.e. the bash way of doing things?
|
|
|
09-27-2007, 01:31 PM
|
#3
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Original Poster
Rep: 
|
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 05:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|