X-Git-Url: https://iankelling.org/git/?p=tee-unique;a=blobdiff_plain;f=appendu;fp=appendu;h=d03fb45ad9541bc7c32b17d774a3096ac11192cf;hp=1e3d583c550e9f084da2cfe8df9be78fae1ed332;hb=188289d21518efbbb782b2d0236e6fa7613c50a5;hpb=676dcfe6e8836e8771943f9d075e2da6877aaf55 diff --git a/appendu b/appendu index 1e3d583..d03fb45 100755 --- a/appendu +++ b/appendu @@ -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,