Backport to bash.