Re: FVWM: echo complicated environment variables

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Tue, 22 Oct 2002 20:07:10 +0000

On 22 Oct 2002 14:14:08 -0400, Victor Eijkhout wrote:
>
> 2.4.11
>
> Echo $[pict-0-$[page.nx]-$[page.ny]]
>
> gives
>
> [FVWM][Echo]: $[pict-0-$[page.nx]-0]
>
> which I don't understand at all.

This is the current feature, nested $[] are not allowed, so effectivelly
the first variable inside $[] is not expanded, but all others are ok.
This is because $[pict-0-$[page.nx] is considered as one $[] variable.

Generally, the rule is: only valid and currently defined $[var.name] are
expanded by fvwm, all other $[] strings are left as is.

Anyway, if you add additional dollar at the beginning:

  Echo $$[pict-0-$[page.nx]-$[page.ny]]

it will be expanded as you want (I hope so, because you didn't say what
you want to get):

  [FVWM][Echo]: $[pict-0-2-3]

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 22 2002 - 15:08:41 BST

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