Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-30-2014, 03:58 PM   #1
LQ Newbie
Registered: Feb 2013
Location: oxon, uk
Distribution: RH5, UBUNTU
Posts: 7

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


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'

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, 09:14 AM   #2
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,306
Blog Entries: 13

Rep: Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698Reputation: 3698
Try adding EQUALS between the assignment of the alias and the actions it is to perform:
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.

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 09:15 AM.
1 members found this post helpful.


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

All times are GMT -5. The time now is 10:33 AM.

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