]> granicus.if.org Git - neomutt/commit
Introduce MUTT_TOKEN_BACKTICK_VARS to expand variables within backticks
authorPietro Cerutti <gahr@gahr.ch>
Mon, 7 May 2018 13:52:55 +0000 (13:52 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 15 May 2018 16:41:35 +0000 (17:41 +0100)
commit0597b6375971ca1d3f610fbcc83dd7f1f4e770ca
treef184922dd54f17969c49f9ccedd99bac76119a42
parent690ee1019d795adb06136d868881c03e4eb42f9c
Introduce MUTT_TOKEN_BACKTICK_VARS to expand variables within backticks

This is a new flag to mutt_extract_token which triggers variable
expansion within backticks.

With this flag:

```
:set my_foo="`echo foo $pager bar`"
:set ?my_foo
foo builtin bar
```

Without this flag:

```
:set my_foo="`echo foo $pager bar`"
:set ?my_foo
foo  bar
```

This flag is currently only passed when parsing a `set` command.
init.c
mutt.h