diff --git a/bash-ini-parser b/bash-ini-parser index 6364842..db66590 100755 --- a/bash-ini-parser +++ b/bash-ini-parser @@ -113,7 +113,7 @@ function cfg_writer { echo $var=\"${!var}\" #output var else echo ";$var is an array" # add comment denoting var is an array - eval 'echo $var=\"${'$var'[*]}\"' # output array var + eval 'echo $var=${'$var'[*]}' # output array var fi done done diff --git a/t/t0001/whitespace.out.correct b/t/t0001/whitespace.out.correct index 868e975..3336513 100644 --- a/t/t0001/whitespace.out.correct +++ b/t/t0001/whitespace.out.correct @@ -9,5 +9,5 @@ var2=" foo" var3="eco" var4="piyo baz qux" ;var5 is an array -var5="foo bar baz hoge" +var5=foo bar baz hoge var6="hoge" diff --git a/t/t0003/sections.out.correct b/t/t0003/sections.out.correct index 13c9c8c..0c94a90 100644 --- a/t/t0003/sections.out.correct +++ b/t/t0003/sections.out.correct @@ -4,14 +4,14 @@ var2="section 1 VAR 2" var3="section 1 VAR 3 " [section2] ;var1 is an array -var1="section 2 VAR 1" +var1=section 2 VAR 1 var2=" section 2 VAR 2" ;var3 is an array -var3="section 2 VAR 3" +var3=section 2 VAR 3 ;var4 is an array -var4="section 2 VAR 4" +var4=section 2 VAR 4 ;var5 is an array -var5="section 2 VAR 5" +var5=section 2 VAR 5 [section3] var1="section 3 VAR 1" var2="section 3 VAR 2"