Bash 5 - 找不到 mapfile / readarray 命令

mon*_*mon 6 bash

我使用的是 MacOS Cagalina 10.15.4。我认为 mapfile 和 readarray 在 Bash 4 及更高版本中可用,但出现在下面。我可以问我做错了什么吗?

$ brew install bash
$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-apple-darwin19.4.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

$ mapfile
-bash: mapfile: command not found

$ readarray
-bash: readarray: command not found
Run Code Online (Sandbox Code Playgroud)