summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 00:52:07 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 00:52:24 (EDT)
commit4bd7b3573b9d69b4b4164946d8c4b99a9ac63006 (patch)
tree49b9bb868a16f9398518b291d6bc2d68c2312572
parent12736c48db116a1e72bfd799efa174f82f42b88e (diff)
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.
-rw-r--r--lib/control.sh1
1 files changed, 0 insertions, 1 deletions
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: