fix bug wrong sed arguments
[tee-unique] / appendu
diff --git a/appendu b/appendu
index 67e68342a2bb18f614e6e429f375bee04ed9008d..460e363fd0223ad88718581cb7d3630da84fef58 100755 (executable)
--- a/appendu
+++ b/appendu
@@ -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)