bashrc alias "alert" - notify-send not installed

Bug #726130 reported by Flavio Waechter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bash

In the ~/.bashrc the following alias is defined:

 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

The Problem is: notify-send isn't installed by default.

My opinion: Aliases which doesn't work are not really user friendly - so the bashrc (or maybe the default packages) should be cleaned up.

Environment and Information:

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ apt-cache policy bash
bash:
  Installed: 4.1-2ubuntu4
  Candidate: 4.1-2ubuntu4
  Version table:
 *** 4.1-2ubuntu4 0
        500 http://ch.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
        100 /var/lib/dpkg/status

3) What you expected to happen
I expected a alert.

4) What happened instead

The program 'notify-send' is currently not installed. You can install it by typing:
sudo apt-get install libnotify-bin

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.