Date: Fri, 17 Mar 2017 00:42:44 +0000 (UTC)
From: [email protected] (Michael van Elst)
Message-ID: <[email protected]>
| That's two isatty() calls (== ioctl TIOCGETA) per arith expression.
Ah, that explains it. Bizarre. In sh $(( )) parsing, the entire
input is in an in-memory string, there are no files involved,
no fd's, and no I/O - and no rational reason at all for ever touching
any fd.
| If I look at flex sources, it's difficult to avoid,
We will avoid it (in sh) by just not using lex (of any parentage) any more.
Problem gone.
Thanks,
kre