strip after _ for bts, too
authorThorsten Glaser <tg@mirbsd.org>
Tue, 24 Jun 2014 18:28:22 +0000 (18:28 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Tue, 24 Jun 2014 18:28:22 +0000 (18:28 +0000)
bash-ksh/profile-funcs

index 96b65fd..6bae04e 100644 (file)
@@ -5,7 +5,7 @@ bts() {
        elif [[ $1 = lp:+([0-9]) ]]; then
                ${BROWSER:-lynx} "https://bugs.launchpad.net/bugs/${1#lp:}"
        else
-               ${BROWSER:-lynx} "http://bugs.debian.org/$*"
+               ${BROWSER:-lynx} "http://bugs.debian.org/${1%%_*}"
        fi
 }
 # Debian Package Tracking System, QA, buildd logs Debian, buildd logs D-Ports