LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-30-2014, 02:58 PM   #1
AdamD
LQ Newbie
 
Registered: Feb 2013
Location: oxon, uk
Distribution: RH5, UBUNTU
Posts: 7

Rep: Reputation: Disabled
alias has stopped working after editing .csh file


Hi,

OS: RH5 & RH6

On our systems we have many versions of the same tools installed. Depending on what version you want to run, we source the appropriate .csh file, then run the tool. I have setup some aliases in my .cshrc file and they look like this:

alias viv2013.3 'source /some/location3/settings64.csh'
alias viv2013.4 'source /some/location4/settings64.csh'
etc
etc

opening a console window I've been able to simply write "viv2013.3" and this sources the script. I then type "vivado" and this launches the program.

However, I edited the settings64.csh file for one of the tools. Realizing what I wanted to do, didn't work - I re-edited the file back to how it was. However, now the alias does not work!! Confused!!

If I source the file directly, not using the alias, it works fine.

Any ideas much appreciated, so, so confused considering all the others work fine.
 
Old 01-31-2014, 08:14 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Try adding EQUALS between the assignment of the alias and the actions it is to perform:
Code:
alias viv2013.3='source /some/location3/settings64.csh'
alias viv2013.4='source /some/location4/settings64.csh'
If that doesn't work, please post equivalent of your relevant lines, like you have done and also post the relevant outcome when you type "alias" in the command prompt after having logged in or run the relevant script.

Code:
desktop:~$ alias viv2013.3='source /some/location3/settings64.csh'
desktop:~$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias viv2013.3='source /some/location3/settings64.csh'
Please place your code and results within [code][/code] blocks.

Last edited by rtmistler; 01-31-2014 at 08:15 AM.
 
1 members found this post helpful.
  


Reply



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
How could I match a file name without extension in csh casualzone Linux - Newbie 1 08-08-2011 04:37 AM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 12:17 PM
using alias's and editing the bashrc cynicalpsycho Linux - Newbie 11 05-07-2009 12:41 AM
py2exe, exe-file has stopped working!? raskol Programming 1 04-13-2008 09:14 AM
alias file not working Michele Linux - Newbie 13 08-11-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 PM.

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
Open Source Consulting | Domain Registration