Re: Negative LINENO possible with indirection

2018-09-18 Thread Harald van Dijk
On 17/09/2018 23:46, Max Rees wrote: Hello, While running the shunit2 test suite[1][2] against dash, the following problem presented itself: when multiple layers of indirection are used, $LINENO yields a negative number. It appears that the root of the problem is that lineno is decremented in

Re: [BUG] failure to push/restore closed file descriptor

2018-09-18 Thread Herbert Xu
Harald van Dijk wrote: > On 23/04/2018 19:56, Martijn Dekker wrote: >> $ dash -c '{ exec 8> Output: "oops, still open" >> Expected output: Bad file descriptor >> >> Apparently, dash either fails to push the file descriptor onto the stack >> at '} 8<&-', or fails to restore it. >> >> Same bug