Re: readonly changes set -e behavior

2017-02-21 Thread Eduardo Bustamante
On Tue, Feb 21, 2017 at 11:02 AM, Dennis Kuhn wrote: [...] > > When the variable s is set to readonly the script does not exit and echoes > "abc": > > #!/bin/bash > set -e > > readonly s=$(false) > echo "abc" [...] This is a commonly reported issue. The moment you add the readonly builtin, you'r

readonly changes set -e behavior

2017-02-21 Thread Dennis Kuhn
Hello, Configuration Information [Automatically generated, do not change]: Machine: Mac OS: Darwin Compiler: gcc Compilation CFLAGS: Xcode uname output: Darwin dkuhn 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64 Machine Type: x8