X-Git-Url: https://iankelling.org/git/?p=tee-unique;a=blobdiff_plain;f=appendu-function;fp=appendu-function;h=00b4cf365c18c99e4ec4b24b9d95092d608cd39b;hp=8b03b0fb5f77af89f95eb5bdb83a33d8f4c52398;hb=188289d21518efbbb782b2d0236e6fa7613c50a5;hpb=676dcfe6e8836e8771943f9d075e2da6877aaf55 diff --git a/appendu-function b/appendu-function index 8b03b0f..00b4cf3 100644 --- a/appendu-function +++ b/appendu-function @@ -75,7 +75,8 @@ LINE_SETs are treated the same. sed -ie '$a\' "$file" # command substitution removes any trailing newlines, so we have to add # a non-newline ending, we randomly chose "b", then remove it. - local content=$(cat "$file"; echo b) content=${content%b} + local content=$(cat "$file"; echo b) + content=${content%b} fi # we aren't using regex because we want to match strings,