Package: mr Severity: wishlist I'm using an improved version of the on() function in my .mrconfig, which handles usernames, etc. Maybe you'd like to include it in the defaults for mr, so people don't have to reinvent the wheel. Here it is:
# Checks whether the given host basename is one of the listed # values. A value can also have a username in it, ie "joey@dodo". on() { for host in $@; do # Handle username specfication. if [ "${host%@*}" != "${host#*@}" ]; then if [ "$whoami" != "${host%@*}" ]; then continue fi # Now strip username from host variable. host="${host#*@}" fi # Check hostname if [ "$shorthostname" = "$host" -o "$fullhostname" = "$host" -o \ "$domainname" = "$host" ]; then return 0 fi done return 1 } -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org