notify-send doesn't show message body which contains ampersand (&)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libnotify (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If the message body contains the character ampersand (&), notify-send shows the title, but not the message body.
It's easily reproduced running it with any message body containing &, for instance:
notify-send teste 'this & that'
See the screenshot attached.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libnotify-bin 0.7.6-1ubuntu3
ProcVersionSign
Uname: Linux 3.16.0-30-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Feb 21 17:29:27 2015
InstallationDate: Installed on 2014-11-25 (88 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: libnotify
UpgradeStatus: No upgrade log present (probably fresh install)
If you replace & with & it seems to work:
foo=`echo "this & that" | sed -r 's/[&]+/&/g'`
notfiy-send "teste" "$foo"