help-bash
[Top][All Lists]
Advanced

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

Re: Issues modifying a local variable inside of a subfunction


From: Lawrence Velázquez
Subject: Re: Issues modifying a local variable inside of a subfunction
Date: Tue, 12 Oct 2021 01:07:12 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-1345-g8441cd7852-fm-20211006.001-g8441cd78

On Tue, Oct 12, 2021, at 12:01 AM, Hunter Wittenborn wrote:
> Completely forgot printf can do this! I haven't used it much in that 
> manner yet, so I'm assuming that's I didn't think of it. Regarding 
> solutions though, that method works out beautifully for me.
>
> Thanks! That looks like it's going to solve my issue just fine.

Great!  Just be sure that you control the variable names or add
validation, as it's susceptible to arbitrary code execution through
array subscripts.  (So is 'declare', though.)

> Thanks for all the inspiring words as well, they're appreciated! :)

^_^

-- 
vq



reply via email to

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