Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: isabella parakiss 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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11609 $ 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