LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-26-2007, 01:51 PM   #1
chrisrose21117
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Rep: Reputation: Disabled
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
 
Old 09-26-2007, 02:38 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by chrisrose21117 View Post
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?
 
Old 09-27-2007, 01:31 PM   #3
chrisrose21117
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
solaris to linux porting vinod_indus Linux - General 3 09-12-2005 11:51 AM
Porting from Solaris to Linux gan_04 Linux - General 2 07-15-2005 09:37 AM
RH9, alias and tcsh shell jeguilloal Red Hat 1 11-26-2003 02:42 PM
Porting from Solaris to Linux raees Linux - General 3 11-10-2003 10:26 AM
Porting from Solaris 2.6 to Linux rajneesh_134 Solaris / OpenSolaris 1 10-22-2003 10:20 AM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration