Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: make the W02 test not take a full minute on linux



On Thu, Jun 11, 2026 at 6:19 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Wed, Jun 10, 2026 at 9:07 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> > +      zpty -w zsh 'alias sleep="sleep 1>&- 2>&- 0<&-"'
>
> Didn't we have some odd errors with closed stdio descriptors in another context?
>
> Just wondering if e.g. "sleep <>/dev/null 2>&1" might be better.

Also needs a 0</dev/null, but yeah, that works too. I have no
preference either way. But if odd errors can pop up, isn't it good if
they happen in a test? :)

-- 
Mikael Magnusson




Messages sorted by: Reverse Date, Date, Thread, Author