mutt variable expansion in shell command ?

Ian Zimmerman itz at very.loosely.org
Wed Aug 28 19:44:42 UTC 2019


On 2019-08-28 20:36, Mathieu Carpentier wrote:

> I would like to use "folder" for mailboxes command:
> mailboxes `echo -n "+ "; cd $folder; find . -maxdepth 1 -type d -name "*"
> -printf "+'%f' "`
> 
> When I run mutt, I get the content of my home directory in the side panel:
> $folder was not "expanded". It works if I use an environment variable set
> before starting mutt.
> 
> Is it possible to use a mutt variable (e.g $folder) in a shell command ?

Not a direct answer, but you _could_ use an environment variable, and
then expand it in both places, ie.

set folder=`echo $FOLDER`

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


More information about the Mutt-users mailing list