From 1a29979bbd962ffff7fa7eea0a2637c4991bfd88 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 24 Aug 2006 10:52:17 +1000 Subject: [PATCH] Ignore return code of exec_subshell when doing command substitution darcs-hash:20060824005217-ac50b-9de976e1fe2d396b08b59619e46669bad6598ec2.gz --- expand.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/expand.c b/expand.c index 785a7c9b4..1dbad8e71 100644 --- a/expand.c +++ b/expand.c @@ -1232,13 +1232,7 @@ static int expand_cmdsubst( wchar_t *in, array_list_t *out ) wcslcpy( subcmd, paran_begin+1, paran_end-paran_begin ); subcmd[ paran_end-paran_begin-1]=0; - if( exec_subshell( subcmd, &sub_res)==-1 ) - { - al_foreach( &sub_res, &free ); - al_destroy( &sub_res ); - free( subcmd ); - return 0; - } + exec_subshell( subcmd, &sub_res); al_init( &tail_expand ); expand_cmdsubst( wcsdup(paran_end+1), &tail_expand );