<<< Date Index >>>     <<< Thread Index >>>

Re: backticks in muttrc



On 2004-01-25, Bob McElrath wrote
> This command should work:
> 
> fcc-save-hook "~s (.*)" =`perl -e '$_="%s"; s/\[([A-Za-z0-9 _]+)\].*/$1/; 
> print;'`
> 
> but it does not.  What about backtick evaluation is preventing this
> from working?

Without single quotes around the backtick expression, the expression
will be evaluated at the time the line is parsed; within a hook, it is
likely that the intent is to defer evaluation until the hook is
activated.

-- 
David Ellement