bug-bash
[Top][All Lists]
Advanced

[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

Attachment: pgpxKEYVjTinj.pgp
Description: PGP signature


reply via email to

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