6040d72e2a438529f5850b68d1a87d54a3c96f45

Author
Thomas (nezza-_-) Roth <thomas.roth@leveldown.de>
Committer
Thomas (nezza-_-) Roth <thomas.roth@leveldown.de>
Date

Message

Fix the behaviour of the sprunge plugin so that is preserves whitespaces and tabs.

Diff

 1diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh
 2index 9f9432ac8c0cb593e6fe43f3be4ef131f707fbc4..e542b437f4ff74a2f4afee14424fff8eb921952a 100644
 3--- a/plugins/sprunge/sprunge.plugin.zsh
 4+++ b/plugins/sprunge/sprunge.plugin.zsh
 5@@ -57,7 +57,7 @@ sprunge() {
 6 	  fi
 7 	else
 8 	  echo Using input from a pipe or STDIN redirection... >&2
 9-	  while read -r line ; do
10+	  while IFS= read -r line ; do
11 		echo $line
12 	  done | curl -F 'sprunge=<-' http://sprunge.us
13 	fi