Projects STRLCPY neomutt Commits 813761ad
🤬
  • source: fix variable interpretation

    Change `source` to look for NeoMutt variables first.
    
    ---
    
    The `source` and `set` commands differed in how they interpreted a
    $variable name.
    
        set my_c = `echo $my_dir/test.rc`
    
    `set` would look for a NeoMutt variable called `my_dir` and failing that
    look for an extern environment variable with that name.
    
        source `echo $my_dir/test.rc`
    
    `source` only looked for an extern environment variable.
  • Loading...
  • Richard Russon committed 2 years ago
    813761ad
    1 parent 8280a635
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    command_parse.c
    skipped 1161 lines
    1162 1162   
    1163 1163   do
    1164 1164   {
    1165  - if (mutt_extract_token(buf, s, MUTT_TOKEN_NO_FLAGS) != 0)
     1165 + if (mutt_extract_token(buf, s, MUTT_TOKEN_BACKTICK_VARS) != 0)
    1166 1166   {
    1167 1167   mutt_buffer_printf(err, _("source: error at %s"), s->dptr);
    1168 1168   return MUTT_CMD_ERROR;
    skipped 534 lines
Please wait...
Page is in error, reload to recover