On Tue, Oct 10, 2017 at 09:05:55AM -0400, shawn wilson wrote:
> Nope, I knew how to correct it (as I showed in the last example), I
> just figured the other two should work.

"Work" how?  You placed a variable in the TEMPORARY execution ENVIRONMENT
of a command.  You can tell it's an environment variable by the "-x"
in the output of declare.  And since it's an environment variable, it
is therefore a string variable, because you can't export arrays.

And it doesn't persist because it's a TEMPORARY variable.  It's just
there for the duration of that one command.

What are you trying to do?

Reply via email to