bash: add test

Closes #26532.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>