bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read and env variables


From: isabella parakiss
Subject: read and env variables
Date: Sun, 11 Oct 2015 02:09:42 +0200

$ 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

[Prev in Thread] Current Thread [Next in Thread]