浏览代码

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

Thomas (nezza-_-) Roth 13 年之前
父节点
当前提交
6040d72e2a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/sprunge/sprunge.plugin.zsh

+ 1 - 1
plugins/sprunge/sprunge.plugin.zsh

@@ -57,7 +57,7 @@ sprunge() {
 	  fi
 	  fi
 	else
 	else
 	  echo Using input from a pipe or STDIN redirection... >&2
 	  echo Using input from a pipe or STDIN redirection... >&2
-	  while read -r line ; do
+	  while IFS= read -r line ; do
 		echo $line
 		echo $line
 	  done | curl -F 'sprunge=<-' http://sprunge.us
 	  done | curl -F 'sprunge=<-' http://sprunge.us
 	fi
 	fi