Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH3] Re: avoid closed stdin() in zle widgets
On Jun 15, 9:42am, Stephane Chazelas wrote:
}
} In other words, I would certainly not want zsh to refuse to <&-
} just like I would not want close(0) in C to fail.
}
} The case of zle widgets running commands with stdin close was
} not a case where the user requested stdin to be closed.
So, just being contrarian at this point, if _main_complete were to have
done "exec <&-" that would be OK, but because the C code does it we
have to patch it.
The point being that the completion system does LOTS of things that the
user didn't explicitly request, but requested implicitly by choosing to
use it. It traps various signals, throws away error output, for some
commands even runs "su" or "sudo" -- although the latter are probably
the best analogy for this because we added _comp_priv_prefix.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author