Fix for quoted variables in command position error message

https://github.com/fish-shell/fish-shell/issues/775
This commit is contained in:
ridiculousfish 2013-06-08 20:07:58 -07:00
parent 8214ae9b15
commit 09b0213738

View File

@ -2041,7 +2041,7 @@ int parser_t::parse_job(process_t *p,
free(cpy);
}
else if (cmd[0]==L'$')
else if (cmd[0]==L'$' || cmd[0] == VARIABLE_EXPAND || cmd[0] == VARIABLE_EXPAND_SINGLE)
{
const env_var_t val_wstr = env_get_string(cmd+1);