Subj : Re: One line shell scripts To : comp.os.linux From : robertharvey Date : Sat Aug 07 2004 07:40 am lzman@mindless.com (gnosis) wrote in message news:... > Is there any way to make a one line shell script an alias? More or less. Different shells are more or less succesful in passing in command line parameters - you can do it but have to be careful with quote marks and escaping. But in general, that's what aliases are. Any command whose parameters follow the alias invocation are fine, but if you want to put, for example, $1 into the middle of the alias, you may be surprised what will happen - you will probably end up with the $1 of the shell itself, not that command line action. you may want to look at defining a function instead, you can invoke functions from the command line. Don't forget you can combine multiple statements ('lines') with brackets and semicolons - alias fred 'ls -l ; echo "last line"' .