Tidy up the shell scripts somewhat.
[cfd] / confsubst.in
index 285e031..f9ba37b 100755 (executable)
@@ -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\a@$tag@\a$value\ag;"
 done