Paul Jarc wrote:
> Benno Schulenberg <[EMAIL PROTECTED]> wrote:
> > Andreas Schwab wrote:
> >><http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_ch
> >>ap02.html#tag_02_09_01_01>:
> >>
> >>     If a simple command results in a command name and an
> >> optional list of arguments, [...]
> >
> > But set() is not a simple command, it is a function definition,
> > no?
>
> Right, so defining the function should work, but calling it
> should not.

Ah!  Okay.

$ export POSIXLY_CORRECT=yes
$ set() { echo "My set $@" ;}
$ set params
$ unset POSIXLY_CORRECT
$ set params
My set params

Benno


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to