bug-bash
[Top][All Lists]
Advanced

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

unset does not act as expected on namerefs


From: Shawn Wilson
Subject: unset does not act as expected on namerefs
Date: Tue, 26 May 2015 10:31:34 -0400
User-agent: Mutt/1.5.22+19 (8f62001989cc) (2013-10-16)

address@hidden:~/temp$ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
address@hidden:~/temp$ cat t.txt 
$ome text !n a file|
address@hidden:~/temp$ unset t
address@hidden:~/temp$ t=$(< ./t.txt)
address@hidden:~/temp$ echo "$t"
bash: $ome text !n a file|: invalid variable name for name reference
address@hidden:~/temp$ var=foo; declare -n t; t=var; unset t; echo "$t"
bash: $ome text !n a file|: invalid variable name for name reference

Attachment: pgpupBu5UGfzc.pgp
Description: PGP signature


reply via email to

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