diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-19 16:27:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-19 16:27:07 +1200 |
commit | 0d11af4df4b652004af26cb4b0793e0d45d44cfd (patch) | |
tree | 718e0f2480f1c3ea6e88f0c32114418c2085e56a /bin/apf | |
parent | Add a POSIX compatibility issue (diff) | |
download | dotfiles-0d11af4df4b652004af26cb4b0793e0d45d44cfd.tar.gz dotfiles-0d11af4df4b652004af26cb4b0793e0d45d44cfd.zip |
Strip trailing whitespace from apf(1)
Diffstat (limited to 'bin/apf')
-rwxr-xr-x | bin/apf | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,11 +31,11 @@ if [ -f "$argf" ] ; then trap "cleanup $sig" "$sig" done td=$(mktd "$self") || exit - + # Write the arguments in reverse to a temporary file revf=$td/revf sed '1!G;$!{h;d}' "$argf" > "$revf" || exit - + # Stack up all the arguments from the file. Skip blank lines and comments. # An empty file is also fine. while IFS= read -r arg ; do |