Browse Source

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

Thomas (nezza-_-) Roth 12 years ago
parent
commit
6040d72e2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/sprunge/sprunge.plugin.zsh

+ 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