On Thu, Apr 21, 2016 at 1:22 PM, Chet Ramey <chet.ramey@case.edu> 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