Op 15-04-21 om 22:43 schreef Harald van Dijk:
[...]
In specific cases, the shell may be able to detect that these issues cannot be a problem. In those specific cases, the optimisation should be perfectly valid and any reasons why it should or should not be performed are not of a technical nature.

It makes sense now: instead of stdio, ksh93 uses libast's sfio, which on most systems is capable of peeking ahead on arbitrary files without consuming data. And it doesn't care if the input is a file or a string because both are turned into sfio input streams. Thanks to Chet and Harald for confirming that I've not overlooked some reason why the optimisation shouldn't be re-enabled.

--
||      modernish -- harness the shell
||      https://github.com/modernish/modernish
||
||      KornShell lives!
||      https://github.com/ksh93/ksh

  • execve(2) optimisat... Martijn Dekker via austin-group-l at The Open Group
    • Re: execve(2) ... Chet Ramey via austin-group-l at The Open Group
    • Re: execve(2) ... Harald van Dijk via austin-group-l at The Open Group
      • Re: execve... Martijn Dekker via austin-group-l at The Open Group
        • Re: ex... Stephane Chazelas via austin-group-l at The Open Group

Reply via email to