Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11609

read and env variables

From isabella parakiss <izaberina@gmail.com>
Newsgroups gnu.bash.bug
Subject read and env variables
Date 2015-10-11 02:09 +0200
Message-ID <mailman.70.1444522186.7904.bug-bash@gnu.org> (permalink)

Show all headers | View raw


$ 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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

read and env variables isabella parakiss <izaberina@gmail.com> - 2015-10-11 02:09 +0200

csiph-web