chiark / gitweb /
fix backslash handling
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 1 May 2008 20:28:25 +0000 (20:28 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 1 May 2008 20:28:25 +0000 (20:28 +0000)
irssi-notify

index 9a9aac2938a23b4de5b9fb815c3d12934227143f..a9b60713372b9ec54f9aa029fb71a35b8d2a3901 100755 (executable)
@@ -5,7 +5,7 @@ set -e
 #   http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html
 
 ssh -n riva irssi-notify-server | \
-       sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' | \
+       sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/\\/\\\\/g' | \
        while read heading message; do
                case $heading in
                        .)