The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
word too long..problem while sourcing .cshrc mobydick UNIX for Dummies Questions & Answers 1 05-08-2008 09:11 PM
script sourcing problem (ksh) rakeshou UNIX for Dummies Questions & Answers 3 09-21-2007 09:29 AM
history -c in my .bashrc yankee428 UNIX for Dummies Questions & Answers 1 06-23-2005 04:13 PM
from bashrc to sh..?? moxxx68 Shell Programming and Scripting 3 09-13-2004 05:39 AM
arguments in sourcing file Nathe UNIX for Dummies Questions & Answers 4 08-23-2004 06:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-27-2008
Nusy Nusy is offline
Registered User
  
 

Join Date: May 2008
Posts: 2
Unhappy sourcing the .bashrc

Hello,

I am quite new to Linux... I need to set some aliases and I can't get it to work. Can somebody tell me what's wrong?

I modified the .bashrc file in my home directory. I added:

alias pmv= '/home/vera/MGLTools-1.4.5/share/bin/pmv'

saved it and ran source .bashrc

The shell returned a line:

if: Expression Syntax

and the alias does not work. (Command not found.) The shell used is tcsh. Is there something wrong in the syntax of the alias? (the path is correct).

Thanks a lot!
  #2 (permalink)  
Old 05-27-2008
ripat ripat is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2006
Location: Belgium
Posts: 438
Try without the space around the = sign:
Code:
alias pmv='/home/vera/MGLTools-1.4.5/share/bin/pmv'
  #3 (permalink)  
Old 05-27-2008
Nusy Nusy is offline
Registered User
  
 

Join Date: May 2008
Posts: 2
Still the same result But thanks a lot!
  #4 (permalink)  
Old 05-27-2008
hifake hifake is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 10
try these... one of these should work

pmv='/home/vera/MGLTools-1.4.5/share/bin/pmv'

alias pmv '/home/vera/MGLTools-1.4.5/share/bin/pmv'

pmv '/home/vera/MGLTools-1.4.5/share/bin/pmv'
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0