From 4bd7b3573b9d69b4b4164946d8c4b99a9ac63006 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 00:52:07 -0400 Subject: ob_set_substvar(): No it can't read only reads one line. It could be put in a loop, but then it would trim whitespace from every line (without some hacks to flag the first line and detect the last line), which is undesired. --- (limited to 'lib') diff --git a/lib/control.sh b/lib/control.sh index 78951bb..3395294 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -201,7 +201,6 @@ ob_set_substvar() )" # Trim leading and trailing whitespace from value. - # TODO: "read" can probably do this more simply. value="$(echo "${value}" | sed -n ' H; # Store each input line in the hold space. ${ # At the last line of input: -- cgit v0.9.1