Re: aliases versus functions

2003-06-07 Thread Colin Watson
On Sat, Jun 07, 2003 at 12:04:44AM -0700, Vineet Kumar wrote: > Functions allow you to use parameters, simple branching ("return"), > recursion, local variables. Functions allow you recursion, as well. > The only real reason that this means you should use them instead of > aliases is that there's

Re: aliases versus functions

2003-06-07 Thread Vineet Kumar
* alex ([EMAIL PROTECTED]) [030606 19:01]: > I've been using a collection of aliases for a few years and I've > been told many times that I should be using 'functions ' to do the > same job that my aliases do quite well. I'm told that aliases are > not suited for running compound commands but s

Re: aliases versus functions

2003-06-06 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jun 06, 2003 at 11:30:58PM -0400, David Z Maze wrote: > (Conventional wisdom, at least in my world, seems to be that you want > to do as little customization in the root account as possible. If I > were setting up a system like this, I'd proba

Re: aliases versus functions

2003-06-06 Thread David Z Maze
alex <[EMAIL PROTECTED]> writes: > For example, I use an alias ' win+ ' to get into my Windows 98SE > From Debian > alias win+='mount -t vfat /dev/hda1 /mnt/da1; cd /mnt/da1; > ls' > > alias win-='cd; umount /mnt/da1' (to unmount) > (I created da1/ in /mnt/ > > > I have mult

aliases versus functions

2003-06-06 Thread alex
I've been using a collection of aliases for a few years and I've been told many times that I should be using 'functions ' to do the same job that my aliases do quite well. I'm told that aliases are not suited for running compound commands but should be limited to simple equivalents such as