Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bash-ini-parser
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion t/t0001/whitespace.out.correct
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 4 additions & 4 deletions t/t0003/sections.out.correct
Original file line number Diff line number Diff line change
Expand Up @@ -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"