From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 12 Apr 2006 22:02:58 -0700 Subject: Re: PATCH: user-defined math functions Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Zsh hackers list Mime-Version: 1.0 From: Barton Schaefer Message-Id: <1144904581.1C7F7561@fb4.dngr.org> X-Seq: zsh-workers 22419 On Tue, 11 Apr 2006 12:28pm, Peter Stephenson wrote: > This adds user-defined math functions implemented by shell functions. > > Using "functions" seemed the best way of avoiding having to create a > new > builtin. Maybe someone has a better suggestion which avoids too much > new syntax. Use typeset? Currently I think the -i/-E/-F options cannot be combined with -f. Allow them to be, and have them create math functions with the corresponding return types.