|
From: | Grisha Levit |
Subject: | Re: coproc and existing variables |
Date: | Tue, 17 May 2016 17:03:56 -0400 |
On Mon, May 16, 2016 at 4:44 PM, Grisha Levit <grishalevit@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
[Prev in Thread] | Current Thread | [Next in Thread] |