$ a= read a <<< x       # this creates a variable in the current shell
$ declare -p a
declare -- a="x"

$ b= mapfile b <<< x    # this doesn't
$ declare -p b
bash: declare: b: not found


Other shells don't seem to agree on what should happen in this case, but
it'd be nice to have a more consistent behavior.

---
xoxo iza

Reply via email to