You're replying to a comment by libdave.

April 22, 2010, 12:08

Almost forgot the follow up function to make it easier:
foo()
{
eval "print -s ${1?no variable}=\'\$$1\'"
}

then do this:
X='xyzzy plugh'

foo X

then edit your history

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.