aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-14 23:53:36 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-14 23:53:36 +1000
commitab207b64a3a73d3550e32ab00935cbc9270a5942 (patch)
tree9e01e853b56edb8712c83a7e1eb599d3ace97d6b /expand.c
parent418e26c0ac172c6a1c92cd2d5bdb3e4325bca5aa (diff)
Add separator characters to make quoted variable expantion works properly
darcs-hash:20051214135336-ac50b-ebd834e2bc52324ae4926efc270508648d8cb280.gz
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index f1d26797..220d985a 100644
--- a/expand.c
+++ b/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++ )
{