Re: FVWM: quoting in fvwm

From: Neil Zanella <nzanella_at_cs.mun.ca>
Date: Sat, 13 May 2000 03:41:14 -0230 (NDT)

On Fri, 5 May 2000, Dominik Vogt wrote:

> That is because the "$$2" is axpanded *twice*. First it's
> expanded when you enter AddToFunc command (reducing it to
> "$2", then it's expanded *again* when the function is executed.
>
> To get a literal '$2' in your function you actually have to
> quote the '$' twice:
>
> $$$$2 -> $$2 -> $2
>
> BTW, The reason why "$$c" works, but not "$$2" is that when
> fvwm encounters a parameter it can't resolve at the moment
> (i.e. because the command is not executed in a window
> context), it doesn't touch the parameter.

Hello,

I am still wondering why can't treat $$0 - $$9 as a special cases and
expand them only within functions. I don't think this would lead to
a loss of functionality since the positional parameters are used only
within functions. Perhaps there is something else I'm not aware of.
BTW, having to quote four times is better than having to quote eight
times: thanks for the bugfix!

Best Regards,

Neil

--
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 Sat May 13 2000 - 01:10:39 BST

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