'eval' exit behaviour in posix mode

2018-12-14 Thread Martijn Dekker
In current git, 'bash -o posix' no longer exits the shell on a syntax error in the argument to the special builtin 'eval'. Bash 4.2-4.4 exit as POSIX specifies. $ bash -o posix -c 'eval "(" || echo woops' bash: eval: regel 1: syntaxfout: onverwacht bestandseinde woops On the other hand, note t

Re: 'eval' exit behaviour in posix mode

2018-12-14 Thread Chet Ramey
On 12/14/18 6:46 AM, Martijn Dekker wrote: > In current git, 'bash -o posix' no longer exits the shell on a syntax error > in the argument to the special builtin 'eval'. Bash 4.2-4.4 exit as POSIX > specifies. Well, not quite. It's the specific case of an unexpected end of file. ksh93 doesn't exit

Re: general loadable integration

2018-12-14 Thread Peng Yu
> I suppose the first thing needed to make that work, and maybe the only > thing needed to make that work, is agreement on the name of a search path > environment variable that enable can use to find loadable builtins. Why not just use an environment variable such as LOADABLES_PATH (just like the

Re: general loadable integration

2018-12-14 Thread Chet Ramey
On 12/14/18 3:01 PM, Peng Yu wrote: >> I suppose the first thing needed to make that work, and maybe the only >> thing needed to make that work, is agreement on the name of a search path >> environment variable that enable can use to find loadable builtins. > > Why not just use an environment vari