Permalink
Browse files

Fix the behaviour of the sprunge plugin so that is preserves whitespa…

…ces and tabs.
  • Loading branch information...
nezza committed Jan 16, 2012
1 parent 7a41498 commit 6040d72e2a438529f5850b68d1a87d54a3c96f45
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/sprunge/sprunge.plugin.zsh
@@ -57,7 +57,7 @@ sprunge() {
fi
else
echo Using input from a pipe or STDIN redirection... >&2
- while read -r line ; do
+ while IFS= read -r line ; do
echo $line
done | curl -F 'sprunge=<-' http://sprunge.us
fi

0 comments on commit 6040d72

Please sign in to comment.