Re: FVWM: How is SetEnv evaluated?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 2 Oct 2002 01:11:38 +0000

On 01 Oct 2002 20:50:14 -0400, Victor Eijkhout wrote:
>
> Can I use the usual expansions? I would like to do something like
>
> SetEnv x `$(( $[x] + 1 ))`

SetEnv gets 2 strings, the first is the name and the second is the value.
You should use PipeRead, but the environment of the child does not affect
the parent fvwm process, so you should do something like:

  PipeRead 'echo SetEnv x `$(( $[x] + 1 ))`'

Or better yet use FvwmPerl instead (if you use 2.5.x) after running it:

  SendToModule FvwmPerl eval $a = 2
  SendToModule FvwmPerl eval $a += 8
  SendToModule FvwmPerl eval for (1 .. $a) { command("Exec xterm -n $_") }

But be aware that $x (unlike $a) is substitued by fvwm, see the man page.

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 Tue Oct 01 2002 - 20:12:50 BST

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