iankelling.org
/
git
/
tee-unique
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
676dcfe
)
fix bug reading file
author
Ian Kelling
<ian@iankelling.org>
Tue, 29 Jul 2014 02:50:26 +0000
(19:50 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Tue, 29 Jul 2014 02:50:26 +0000
(19:50 -0700)
appendu
patch
|
blob
|
history
appendu-function
patch
|
blob
|
history
diff --git
a/appendu
b/appendu
index 1e3d583c550e9f084da2cfe8df9be78fae1ed332..d03fb45ad9541bc7c32b17d774a3096ac11192cf 100755
(executable)
--- 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.
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,
fi
# we aren't using regex because we want to match strings,
diff --git
a/appendu-function
b/appendu-function
index 8b03b0fb5f77af89f95eb5bdb83a33d8f4c52398..00b4cf365c18c99e4ec4b24b9d95092d608cd39b 100644
(file)
--- 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.
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,
fi
# we aren't using regex because we want to match strings,