Thread: Shell Script.
View Single Post
  #6   (View Single Post)  
Old 11th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
Originally Posted by 18Googol2
Quote:
Originally Posted by Carpetsmoker View Post
Maybe using an alias is simpler/faster, for example:

% alias mp 'mplayer -playlist r1live.ram'
I dont think it would be faster because everytime you start a new shell session, the shell have to read through the startup script file (perhaps alias file as well) again
Hm? It would do this anyway ...?

Using an alias won't spawn an instance of sh, using a script does ...

But what I mainly meant was that it's faster/easier to set up and maintain, especially if you have lots of little shortcuts like this ... This is how I prefer to do things.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote