From 58daff309a0b0c88bcf583ff971412667b88b83b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 01:20:22 -0400 Subject: parse_control(): Support any whitespace in field lists --- (limited to 'src') 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 -- cgit v0.9.1