Re: source a file from a $VAR ?
* Toby <tobia.conforto@xxxxxxxx> [2005-04-06 01:10 +0200]:
> Michelle Konzack scrisse:
> > macro index <F7> "!tdmuttsource\n:source $TDMS\n"
> >
> > tdnuttsource is the BASH script which create a "dialog",
> > let me select the file and write it into the variable
> >
> > export $TDMS=<config>
>
>
> I can think of one reason and a half for it not to work:
>
> 1. Environment variables get passed onto child processes, never up to
> parent processes. An external script called from mutt (!script) is
> run as a child process. Environment variables pass from mutt to the
> script, but not the other way round. This is a property of UNIX.
ACK.
I would try something like:
macro index <F7> '`tdmuttsource`'
and let tdmuttsource print "source $TDMS".
Nicolas