From ef6455d8d03b0b999968ab6f8444baa14f68bb02 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Mar 2019 23:05:57 -0400 Subject: ob_parse_control(): Fix variable name in expansion Bug found with "set -u" in test suite. --- (limited to 'lib') diff --git a/lib/control.sh b/lib/control.sh index 58827ea..3c2507e 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -125,7 +125,7 @@ ob_parse_control() case "${req_fields}" in *" ${name} "*) # Required field: remove from list. req_fields="${req_fields% ${name} *}$(:\ - ) ${req#* ${field} }" + ) ${req_fields#* ${field} }" continue esac if ${check_fields}; then -- cgit v0.9.1