[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 .