1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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

This commit is contained in:
Thomas (nezza-_-) Roth 2012-01-16 12:20:06 +01:00
parent 7a41498b0d
commit 6040d72e2a

View file

@ -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