On Jul 25 10:36, David Champion wrote: > >> set my_muttdir=$HOME/.mutt > >> folder-hook `$my_muttdir/script.sh` ... > > > >> Here, Mutt doesn't seem to expand $my_muttdir before handing the command > >> over > >> to the shell. Is there a trick to do that? > > > > It doesn't seem so. At least for interactive shell-escape function it's > > documented that these variables aren't expanded... and I assume the same > > is true for backtick expansion. > > You can work around this by putting MUTTDIR in your shell environment > before running mutt. > > sh$ export MUTTDIR=~/.mutt > with > folder-hook `$MUTTDIR/script.sh` >
Hmm, how do you read my mind? :) steve