fix bug wrong sed arguments
[tee-unique] / appendu-function
index 13a7d740cd51548714ce6ff28730af2a495a3ada..35f16eb13a89514d939e945c39c1615648cdbfc8 100644 (file)
@@ -72,7 +72,7 @@ LINE_SETs are treated the same.
         # e = run script, $a\ means append following text, but there is none,
         # so sed only does what it always does when it was supposed to modify a file,
         # which is append a newline if there was none.
-        sed -ie '$a\' "$file"
+        sed -i '$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)