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

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Fri, 21 May 1999 10:03:18 -0400

dsg_at_mitre.org (David S. Goldberg) writes:
> The problem is almost certainly the empty arguments being passed to
> the exec of the FvwmForm module. I trussed my fvwm2 with the follow
> option and I see at the execve line:
>
> 4754: fork() (returning as child ...) = 2405
> 4754: close(23) = 0
> 4754: close(24) = 0
> 4754: execve("/blackbird/local/openwin/libexec/fvwm/2.2/FvwmForm", 0xEFFF8A
> B8, 0xEFFFF398) argc = 14
>
> argc should certainly not be 14. I'm passing FvwmForm one argument,
> the name of the form. fvwm2 passes it an addition 6 if I remember
> correctly. If I call FvwmForm MyXcmd without the wrapper function
> argc shows up as 7 as expected. Since I don't want to waste bandwidth
> on the list, if anyone wants the truss outputs, I'll be happy to email
> them. Hmm. Better yet, I've put them on my web page:
>
> <URL:http://world.std.com/~dsg/fvwmform-via-wrapper.txt>
> <URL:http://world.std.com/~dsg/fvwmform-native.txt>
> --
> Dave Goldberg

I'm convinced. I see the problem as far back as 2.1.4. (Thats as far
back as I can go at the moment.) This simple test demonstrates the
problem:

AddToFunc showit "I" Echo "I got: " $0 $1 $2 $3
showit test

Which produces:

[FVWM][Echo]: "I got: " test $1 $2 $3

--
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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 Fri May 21 1999 - 09:04:52 BST

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