[Top][All Lists]

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

Re: coproc and existing variables

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 <address@hidden> 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

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