help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] The best way to derefrence a variable whose name is stor


From: Greg Wooledge
Subject: Re: [Help-bash] The best way to derefrence a variable whose name is stored in another variable.
Date: Fri, 24 Apr 2015 15:46:44 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Apr 24, 2015 at 02:42:26PM -0500, Peng Yu wrote:
> Hi I use the following code to test if the variable name stored in "x"
> actually have any value set.

Why?  Why not use an associative array instead of a room full of unrelated
scalar variables?

That said, you might want http://mywiki.wooledge.org/BashFAQ/006 .



reply via email to

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