On Sat, 30 Sep 2006 12:04:46 +0200 Michelle Konzack
<[EMAIL PROTECTED]> wrote:

> ******************************************************************
> * Do not Cc: me, because I am on THIS list, if I write here      *
> * Keine Cc: an mich, bin auf DIESER Liste wenn ich hier schreibe *
> ******************************************************************
> 
> Hello,
> 
> I have following variables in my config:
> 
>     SetEnv XTERM_log1 "`date +%Y%m%d_%H%M%S`"
>     SetEnv XTERM_log2 "`hostname -a |tr -d ' '`"
>     SetEnv XTERM_log3 "`echo $[DISPLAY] |sed 's/\..*//'`"
> 
> and if I open a XTermand do a
> 
>     env |grep XTERM
> 
> I get
> 
>     XTERM_log1=`date +%Y%m%d_%H%M%S`
>     XTERM_log2=`hostname -a |tr -d " "`
>     XTERM_log3=`echo ":1.0" |sed "s/..*//"`
> 
> My first question now is:  Why are the Variables are NOT expanded?

Because interpolation has to happen at the shell level.  All you've
done there is delcare the above variables to hold the literal values.
Hence you really want:

PipeRead 'echo SetEnv XTERM_log1 $(date +%Y%m%d_%H%M%S)'

etc.

-- Thomas Adam

-- 
"If I were a witch's hat, sitting on her head like a paraffin stove, I'd
fly away and be a bat." -- Incredible String Band.

Reply via email to