Re: [BUG] Redirection bug in subshell's EXIT trap

2017-10-19 Thread Harald van Dijk
On 19/10/17 19:44, Vitaly Sinilin wrote: Hi, I've recently written a quite unusual script and faced a strange dash behavior that seems not POSIX-ly correct to me. Here is the script with a lot of debugging extra output. (I am sorry about posting a pretty lengthy script, but I feel like a

[BUG] Redirection bug in subshell's EXIT trap

2017-10-19 Thread Vitaly Sinilin
Hi, I've recently written a quite unusual script and faced a strange dash behavior that seems not POSIX-ly correct to me. Here is the script with a lot of debugging extra output. (I am sorry about posting a pretty lengthy script, but I feel like a shorten version will look just insane without

Re: [NO-BUG] quoted substring parameter expansion ignores single-quotes in the arg

2017-10-19 Thread G.raud
Wrong bug report. In fact the beahviour of dash on "a=\\'a\\'; echo \"\${a%'}\"" is that of POSIX and of zsh 5. However 'bash --posix', 'mksh -o posix' and pdksh fail to parse the command and ksh does not remove the quote from $a. On Tue, Sep 26, 2017 at 05:41:48AM +0200, G.raud wrote: >