-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/26/15 10:31 AM, Shawn Wilson wrote:
> 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
This is pretty obviously not the entire story, since you've never assigned
`t' the nameref attribute. If you run `declare -n t' after the unset,
you'll see that error, but your transcript doesn't show you doing that.
If you can show me a complete transcript I can tell you what's happening.
It may be that you've discovered a bug, but it's hard to say.
Chet
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlVl0ygACgkQu1hp8GTqdKspagCfXwqF2uqmwtMhs2vKHevGSJu2
1EAAn01FXqjv+RpKlilPQn7TxJRg1dMt
=PQ5D
-----END PGP SIGNATURE-----