[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
exporting variable via variable requires more quotes than normal
From: |
Mike Frysinger |
Subject: |
exporting variable via variable requires more quotes than normal |
Date: |
Tue, 27 Jun 2006 04:08:16 -0400 |
User-agent: |
KMail/1.9.1 |
is this a bug or feature ? i never know with bash :)
$ echo "HI THERE" > foo
$ export f=$(<foo)
$ echo $f
HI THERE
$ export v=f
$ export ${v}=$(<foo)
$ echo $f
HI
$ export ${v}="$(<foo)"
$ echo $f
HI THERE
-mike
pgpxKEYVjTinj.pgp
Description: PGP signature
- exporting variable via variable requires more quotes than normal,
Mike Frysinger <=