diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/control.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/control.sh b/src/control.sh index 3950700..cec08ce 100644 --- a/src/control.sh +++ b/src/control.sh @@ -43,8 +43,8 @@ parse_control() { local file="${1}" local field_cb="${2}" - local req_fields=" ${3} " - local opt_fields=" ${4} " + local req_fields="${3}" + local opt_fields="${4}" shift 4 local got_fields= local line_nr= @@ -53,6 +53,8 @@ parse_control() local value= local sep= + req_fields=" $(printf '%s ' ${req_fields})" + opt_fields=" $(printf '%s ' ${opt_fields})" got_fields=' ' line_nr=0 |