On Tue, Jan 29, 2008 at 05:48:00PM +0100, Александър Л. Димитров wrote:
> to be able to handle your daily work quicker. Aliases shouldn't be used in > shellscripts because: > > a) it makes them more difficult to understand (aliases often have very > unintuitive names) for other people Well, that's no argument against aliases. You can give functions cryptic names as well. > b) it makes the whole script unportable (someone else won't have the same > aliases in place) The same goes for functions if they are defined outseide the script. If whatever you're trying to automate doesn't require any handling of arguments (other than tacking them onto the end of whatever), aliases are just as good as functions. I prefer functions in general, but I'm a programmer. --D.
signature.asc
Description: Digital signature