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 9a9aac2..a9b6071 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
                        .)