bug-bash
[Top][All Lists]
Advanced

[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: Thu, 21 Apr 2016 14:39:32 -0400

On Thu, Apr 21, 2016 at 1:22 PM, Chet Ramey <address@hidden> wrote:
>
> > 1. coproc unsets readonly NAME after the process completes
>
> Yes.  This is a gray area.  Under some circumstances, e.g, getopts with
> OPTARG, defined shell behavior can override a readonly setting.

Probably should at least disallow this case?

$ bash -r -c 'coproc PATH { :; }; wait; PATH=/whatever; echo $PATH'
bash: PATH: readonly variable
bash: PATH: readonly variable
/whatever



reply via email to

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