On Mon, May 16, 2016 at 4:44 PM, Grisha Levit <grishale...@gmail.com> wrote:


>    - The %s_PID variable is unbound unconditionally
>
> BTW, this is exploitable for unsetting read-only variables.

$ declare -r RO; declare -n ref_PID=RO; coproc ref { :; }; wait; declare -p RO
bash: ref_PID: readonly variable
[1] 13868
bash: declare: RO: not found

​

Reply via email to