Re: FVWM: Re: Empty function arguments (was Re: Finally moved to 2.2 etc etc)

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Mon, 24 May 1999 14:53:40 +0200

On Fri, May 21, 1999 at 11:29:06AM -0400, Brad Giaccio wrote:
> On Fri, May 21, 1999 at 04:17:12PM +0200, Dominik Vogt wrote:
> > > AddToFunc showit "I" Echo "I got: " $0 $1 $2 $3
> > > showit test
> > >
> > > Which produces:
> > >
> > > [FVWM][Echo]: "I got: " test $1 $2 $3
> >
> > What does it show? This is exactly what I would have expected. Am
> > I missing something?
> >
> > Bye
> >
> > Dominik ^_^
> >
>
> I would have expected to see
> [FVWM][Echo]: "I got: " test
>
> since $1 $2 and $3 are all empty strings
>
> The problem is in functions.c:expand
>
> the problem is that I ddin't acount for quite enough cases the last
> time I patcehd this function. What needs to be done is to distinguish
> between creating a function and actually expanding args when it is being
> executed. This patch works for me in all places where I use $args could
> someone else apply it and commit it if it works for them too.

OK, the patch is applied.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu May 27 1999 - 15:33:38 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST