.bashrc.d/20nobeep: Fallback to -blength if --blength doesn't work
authorW. Trevor King <wking@tremily.us>
Wed, 11 Jul 2018 22:24:54 +0000 (15:24 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 11 Jul 2018 22:41:14 +0000 (15:41 -0700)
commit75b4abb380319a277d733bc899ff898457b8018c
treee1dee1237a6c00585182159e34e3f7c04e44ca4f
parentc7f9155f864dd3d5c13791720610d332e21eab4c
.bashrc.d/20nobeep: Fallback to -blength if --blength doesn't work

I'd bumped from -blength to --blength in abee64c4 (.bashrc.d/20nobeep:
Change '-blength' -> '--blength', 2015-03-19), expecting to never see
util-linux < 2.25 or so again.  But I've recently been exposed to a
RHEL 7.5 system, which has:

  $ setterm -version
  setterm from util-linux 2.23.2
  $ setterm --help 2>&1 | grep blength
   -blength <0-2000>

so this commit adds code to attempt the single-dash form if the
double-dash form fails.
src/.bashrc.d/20nobeep