Re: FVWM: PipeRead

From: Mikhael Goikhman <migo_at_cortext.co.il>
Date: Fri, 21 Apr 2000 18:44:27 +0300

On 20 Apr 2000 18:46:18 +0100, Vivek wrote:
>
> Hi - I'm having a little trouble getting PipeRead to behave as I expect
> in 2.2.4:
>
> I have the following function:
>
> AddToFunc make_module_menu
> + "I" DestroyMenu Module-Popup
> + "I" AddToMenu Module-Popup FOO Title
> + "I" PipeRead 'for m in /usr/X11R6/lib/X11/fvwm2/*; do X=`basename $m`; echo -e "AddToMenu\tModule-Popup\t\"$X\"\tNop"; done'

> The title of the menu gets set, but there are no entries in it.
> When I run the above shell command by hand, I get the following output:
>
> AddToMenu Module-Popup "FvwmAnimate" Nop
> AddToMenu Module-Popup "FvwmAudio" Nop

I am commenting the current version, but I don't think there were changes
in PipeRead parsing from 2.2.4. Solutions:

1) Quote all backslashes in your PipeRead line with backslash: \\.
2) Create a small shell script and PipeRead it.
3) Rewrite your last line to be simplier:

  + I PipeRead 'for m in `ls /usr/X11R6/lib/X11/fvwm2`; echo "AddToMenu Module-Popup $m Nop"; done'

Regards,
Mikhael.
--
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 Apr 21 2000 - 10:46:23 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:50 BST