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


Groups > gnu.bash.bug > #11609

read and env variables

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From isabella parakiss <izaberina@gmail.com>
Newsgroups gnu.bash.bug
Subject read and env variables
Date Sun, 11 Oct 2015 02:09:42 +0200
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.70.1444522186.7904.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace usenet.stanford.edu 1444522186 2338 208.118.235.17 (11 Oct 2015 00:09:46 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rKNkBgOtFMc8aTGy0vncelANOBJOO50HjxENPEeQnNg=; b=DW/OIHy9I9Ru7DGdSyZsh+H9TscWFF+KA1IdXSWm3nMs9WG1p640g9ciop2ffJq2pl HWoZT+l+hYPrccUpmKnu8KsuFnCi8lxrByLxFq+w/+pAmyGX4mZrfkYe79TmXhkNJqCO nfyCfVbRLYZ3p8Jtwc0jttz59ZUfrusQLlb0ih49Yaf4Y/qNl/a4CbD6PcfzKlXk6ZGi 7G08qvMlQdsCPjp3nALtqTdcNbZwmf4+ayEhKwqpgrwejJrjxgsbpimLJ1hfkfkCE8Bd U2ls/hUUrMRCqFAZIiv+epp+Zm+GTLVl3L6ClRE5ayYCunOC/FLF1trf1rPRxoFRyY3C 476g==
X-Received by 10.50.39.6 with SMTP id l6mr6032686igk.55.1444522182309; Sat, 10 Oct 2015 17:09:42 -0700 (PDT)
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2607:f8b0:4001:c05::236
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11609

Show key headers only | 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