[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) |
swilson@swlap1:~/temp$ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
swilson@swlap1:~/temp$ cat t.txt
$ome text !n a file|
swilson@swlap1:~/temp$ unset t
swilson@swlap1:~/temp$ t=$(< ./t.txt)
swilson@swlap1:~/temp$ echo "$t"
bash: $ome text !n a file|: invalid variable name for name reference
swilson@swlap1:~/temp$ var=foo; declare -n t; t=var; unset t; echo "$t"
bash: $ome text !n a file|: invalid variable name for name reference
pgpsWTfb_PIoF.pgp
Description: PGP signature
- unset does not act as expected on namerefs,
Shawn Wilson <=
- Re: unset does not act as expected on namerefs, Greg Wooledge, 2015/05/26
- Re: unset does not act as expected on namerefs, Shawn Wilson, 2015/05/26
- Re: unset does not act as expected on namerefs, Geir Hauge, 2015/05/26
- Re: unset does not act as expected on namerefs, Eduardo A . Bustamante López, 2015/05/26
- Re: unset does not act as expected on namerefs, Geir Hauge, 2015/05/26
- Re: unset does not act as expected on namerefs, Shawn Wilson, 2015/05/26
- Re: unset does not act as expected on namerefs, Greg Wooledge, 2015/05/27
- Re: unset does not act as expected on namerefs, Chet Ramey, 2015/05/29
- Re: unset does not act as expected on namerefs, Chet Ramey, 2015/05/27
Re: unset does not act as expected on namerefs, Chet Ramey, 2015/05/27