mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
don't expand variables in no_exec mode
We couldn't know variables values unless execute commands, so disable variable expansion in no_exec mode.
This commit is contained in:
parent
694cdf5ae1
commit
a941d82be3
1 changed files with 3 additions and 1 deletions
4
parser.c
4
parser.c
|
@ -1514,7 +1514,9 @@ static void parse_job_argument_list( process_t *p,
|
|||
{
|
||||
case TOK_STRING:
|
||||
{
|
||||
target = (wchar_t *)expand_one( j, wcsdup( tok_last( tok ) ), 0);
|
||||
target = (wchar_t *)expand_one( j,
|
||||
wcsdup( tok_last( tok ) ),
|
||||
no_exec ? EXPAND_SKIP_VARIABLES : 0);
|
||||
|
||||
if( target == 0 && error_code == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue