Re: [newbie] Alias question...

2001-12-30 Thread Tim Holmes

*Slight* correction. :0) 

In bash you need quotes if the alias includes spaces.

Example:

alias z=zwrite

That DOES NOT need quotes.

alias mp='mplayer -vo x11'

This alias DOES need quotes.

I know... I'm nit-picking, just giving away free information! :0)
tdh

--
  
  T. Holmes  |  UNIXTECHS.org  |  [EMAIL PROTECTED]  |  UIN:  17021091
  
 | On Saturday 29 December 2001 17:06, you wrote:
 |  Hi. I'm trying to get to alias's (pleural sp?) to work and am having
 |  a problem. Here is what I put into /home/darklord/.bashrc:
 | 
 |  alias diablo2=winex /mnt/windows/Program\ Files/Diablo\ II/Game.exe
 |  alias starcraft=winex /mnt/windows/Program\
 |  Files/Starcraft/starcraft.exe
 | 
 |  Bash always complains that it can not find either of the *.exe files.
 |  It doesn't complain about the path to them...
 | 
 | In bash you need quotes around the aliased command if it consists of 
 | more than one word.
 | 
 | S
 | 
 | -- 
 |  Eagles may soar, but weasels don't get sucked into jet engines 
 | Remove the fruit to obtain reply address:
 | spencer at lasermount satsuma dot uklinux dot net
 | 5:57pm up 35 days, 3:57, 13 users, load average: 0.05, 0.12, 0.20
 | Registered Linux User #232457
 | 
 | Want to buy your Pack or Services from MandrakeSoft? 
 | Go to http://www.mandrakestore.com

  - Uptime ---
  6:06PM  up 66 days,  6:45, 3 users, load averages: 0.02, 0.02, 0.00
  



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Alias question...

2001-12-30 Thread Ronald J. Hall

Spencer Collyer wrote:

 In bash you need quotes around the aliased command if it consists of
 more than one word.

Thank you!

-- 
 
   /\
   DarkLord
   \/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Alias question...

2001-12-30 Thread Michel Clasquin

On Saturday 29 December 2001 19:06, Ronald J. Hall wrote:
 Hi. I'm trying to get to alias's (pleural sp?) to work and am having a
 problem. Here is what I put into /home/darklord/.bashrc:

 alias diablo2=winex /mnt/windows/Program\ Files/Diablo\ II/Game.exe
 alias starcraft=winex /mnt/windows/Program\
 Files/Starcraft/starcraft.exe

 PS Program Files and Diablo II have blank spaces in them, so I had to
 use the \ character, right? If I enter either of these commands as is
 from a shell, they execute just fine...

Instead of using the \ escape character, try encasing the whole thing in 
double quotes: 

alias diablo2=winex /mnt/windows/Program Files/Diablo II/Game.exe

Sometimes one method works better than the other, dunno why

-- 
Michel Clasquin, D Litt et Phil (Unisa)
[EMAIL PROTECTED]/unisa.ac.za   http://www.geocities.com/clasqm
This message was posted from a Microsoft-free PC

f u cn rd ths, u cn gt a gd jb n nx dmnstrtn





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Alias question...

2001-12-29 Thread Ronald J. Hall

Hi. I'm trying to get to alias's (pleural sp?) to work and am having a
problem. Here is what I put into /home/darklord/.bashrc:

alias diablo2=winex /mnt/windows/Program\ Files/Diablo\ II/Game.exe
alias starcraft=winex /mnt/windows/Program\ Files/Starcraft/starcraft.exe

Bash always complains that it can not find either of the *.exe files. It
doesn't complain about the path to them...

Any ideas? Thanks!

PS Program Files and Diablo II have blank spaces in them, so I had to use the
\ character, right? If I enter either of these commands as is from a shell,
they execute just fine...

-- 
 
   /\
   DarkLord
   \/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Alias question...

2001-12-29 Thread Spencer Collyer

On Saturday 29 December 2001 17:06, you wrote:
 Hi. I'm trying to get to alias's (pleural sp?) to work and am having
 a problem. Here is what I put into /home/darklord/.bashrc:

 alias diablo2=winex /mnt/windows/Program\ Files/Diablo\ II/Game.exe
 alias starcraft=winex /mnt/windows/Program\
 Files/Starcraft/starcraft.exe

 Bash always complains that it can not find either of the *.exe files.
 It doesn't complain about the path to them...

In bash you need quotes around the aliased command if it consists of 
more than one word.

S

-- 
 Eagles may soar, but weasels don't get sucked into jet engines 
Remove the fruit to obtain reply address:
spencer at lasermount satsuma dot uklinux dot net
5:57pm up 35 days, 3:57, 13 users, load average: 0.05, 0.12, 0.20
Registered Linux User #232457



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com