I use this to browse a bug by number:
--8<---------------cut here---------------start------------->8---
#!/usr/bin/bash
# browse-bug
num="$(echo "$1"|tr -cs '0123456789' ' '|tr -d ' ')"
my_browser="${MY_BUG_BROWSER:-lynx}"
if [ -n "$num" ];then
$my_browser "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=$num"
else
echo "\
Usage: [MY_BUG_BROWSER=<your preference>] browse-bug BUG_NUMBER (not
'$1' -> '$num')
BUG_NUMBER will be taken from \$1 word stripped of non-digits if
any
If you set MY_BUG_BROWSER to firefox-esr, you can run this in the
background like
browse-bug '#56669' &
but lynx will want interaction from you on stdin, so no '&'
NB: if you Ctl-V the #, delete it or quote it, or bash will throw
it away as comment.
"
exit 1
fi
--8<---------------cut here---------------end--------------->8---