mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Add separator characters to make quoted variable expantion works properly
darcs-hash:20051214135336-ac50b-ebd834e2bc52324ae4926efc270508648d8cb280.gz
This commit is contained in:
parent
418e26c0ac
commit
ab207b64a3
1 changed files with 2 additions and 1 deletions
3
expand.c
3
expand.c
|
@ -713,7 +713,7 @@ static int expand_variables( wchar_t *in, array_list_t *out )
|
|||
wchar_t * new_in;
|
||||
array_list_t l;
|
||||
int is_single = (c==VARIABLE_EXPAND_SINGLE);
|
||||
|
||||
|
||||
stop_pos = start_pos;
|
||||
|
||||
while( 1 )
|
||||
|
@ -847,6 +847,7 @@ static int expand_variables( wchar_t *in, array_list_t *out )
|
|||
in[i]=0;
|
||||
|
||||
sb_append( &res, in );
|
||||
sb_append_char( &res, INTERNAL_SEPARATOR );
|
||||
|
||||
for( j=0; j<al_get_count( &l); j++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue