Re: set function and special builtin set

2007-05-18 Thread Benno Schulenberg
Paul Jarc wrote: > Benno Schulenberg <[EMAIL PROTECTED]> wrote: > > Andreas Schwab wrote: > >> >>ap02.html#tag_02_09_01_01>: > >> > >> If a simple command results in a command name and an > >> optional list of arguments, [...] > >

Re: set function and special builtin set

2007-05-18 Thread Paul Jarc
Benno Schulenberg <[EMAIL PROTECTED]> wrote: > Andreas Schwab wrote: >>: >> >> If a simple command results in a command name and an optional >> list of arguments, [...] > > But set() is not a simple command

Re: set function and special builtin set

2007-05-18 Thread Benno Schulenberg
Andreas Schwab wrote: > Benno Schulenberg <[EMAIL PROTECTED]> writes: > > $ set() { echo "My set $@" ;} > > $ set params > > My set params > > > > It just works. > > It's not supposed to. See >: > > If a s

Re: set function and special builtin set

2007-05-18 Thread Andreas Schwab
Benno Schulenberg <[EMAIL PROTECTED]> writes: > Clive Nicolson wrote: >> Is it posible to get a user function named set to be called in >> place of the special builtin set? >> >> ie >> >> set() { echo "My set $@" ;} >> >> set params > > You haven't tried this? > > $ set() { echo "My set $@" ;} > $

Re: set function and special builtin set

2007-05-18 Thread Benno Schulenberg
Clive Nicolson wrote: > Is it posible to get a user function named set to be called in > place of the special builtin set? > > ie > > set() { echo "My set $@" ;} > > set params You haven't tried this? $ set() { echo "My set $@" ;} $ set params My set params It just works. Also read the output o

set function and special builtin set

2007-05-18 Thread Clive Nicolson
Is it posible to get a user function named set to be called in place of the special builtin set? ie set() { echo "My set $@" ;} set params Thanks Clive ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash