summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-25 22:42:45 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-25 22:42:45 (EST)
commit0d7da47773513cabf6465af0a2c8d24204479046 (patch)
tree5429d499bf244b2ef2315e09c7a8ccfbafbb84c8 /lib/control.sh
parent8d5bfc4679824ca505f5982ee602e5b79774f890 (diff)
ob_set_substvar(): Shorten sed script comments
Diffstat (limited to 'lib/control.sh')
-rw-r--r--lib/control.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 40a9b08..fd07bed 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -194,12 +194,12 @@ ob_set_substvar()
# Trim leading and trailing whitespace from value.
value="$(echo "${value}" | sed -n '
- H; # Store each input line in the hold space.
- ${ # At the last line of input, …
- g; # … restore the hold space into the pattern space, …
- s/^[\n]*//; # … remove leading newline characters, …
- s/[\n]*$//; # … remove trailing newline characters, and …
- p; # … print the results.
+ H; # Store each input line in the hold space.
+ ${ # At the last line of input:
+ g; # restore the hold space into the pattern space,
+ s/^[\n]*//; # remove leading newline characters,
+ s/[\n]*$//; # remove trailing newline characters, and
+ p; # print the results.
};
')"