Re: FVWM: Appending sth. to an empty(?) env. var.?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sat, 21 Feb 2004 22:22:33 +0000

On 21 Feb 2004 19:11:09 +0100, Felix E. Klee wrote:
>
> under FVWM, how can I get the same behavior as the following BASH
> command:
> export SOME_PATH=$SOME_PATH:/usr/lib
> ?
>
> The problem is that I don't know whether $[SOME_PATH] is already set or
> not. When it is set, then
> setenv SOME_PATH $[SOME_PATH]:/usr/lib
> sets the value of $[SOME_PATH] to "$[SOME_PATH]:/usr/lib". When it is
> not set, then the above command works as desired.

You may do:

  PipeRead 'echo SetEnv SOME_PATH $SOME_PATH:/usr/lib'

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 Sat Feb 21 2004 - 16:24:50 GMT

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