X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/87eaf275d4957b93583b9dcfb71d06f798533aca..de8440cea07259aadd308a01cf5f3247647514b7:/confsubst.in diff --git a/confsubst.in b/confsubst.in index 285e031..f9ba37b 100755 --- a/confsubst.in +++ b/confsubst.in @@ -78,8 +78,7 @@ for fixup; do *?=*) ;; *) echo >&2 "$0: bad substitution: $fixup"; exit 1 ;; esac - tag=$(echo "$fixup" | sed 's/=.*$//') && \ - value=$(echo "$fixup" | sed 's/^[^=]*=//') && \ + tag=${fixup%%=*} value=${fixup#*=} subst="$subst s@$tag@$valueg;" done