On Fri, 13 Feb 2009, Ed Blackman wrote:
> Do this, inside mutt type:
>
> :`echo 'set my_test=foo'`
>
> and then
>
> :set ?my_test

This example worked, but I might find the reason why it didn't work
in general.  I saved the following script as mutt-test and put a line
`mutt-test bar` in my .muttrc 

#!/bin/sh

email="$1"

cat <<EOF
set my_test1=${email}
set my_test2=${email}
set my_test3=cat
EOF

set ?my_test1 does give the expected answer but not for my_test2 and
my_test3 (unknown variable).  My conjecture is the that back-tick
trick only work for the first line for output and it will ignore the
rest of lines.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩222 秦韜玉  貧女
    蓬門未識綺羅香  擬託良媒益自傷  誰愛風流高格調  共憐時世儉梳妝
    敢將十指誇鍼巧  不把雙眉鬥畫長  苦恨年年壓金線  為他人作嫁衣裳

Reply via email to