Passing a variable to a function


I am trying to call a function from a FvwmScript:

Do {ChangeWeatherCond starting}

…works fine. But when I try to use a variable:

Do {ChangeWeatherCond $currcond}

…not the value of $currcond is passed to ChangeWeatherCond, but the string ‘$currcond’ — how do I solve this?

I guess one way to get around this would be to use FvwmCommand from a regular shellscript, but I am guessing this is possible from within FvwmScript?

I tried using:

Do {SetEnv foo $bar}

Which of course did not work. But the issue is misleading, anyway. It’s just a matter of interpolation that FvwmScript’s syntax clearly doesn’t inherently provide.

– Thomas Adam