待辦事項 #36843

Process substitution

啟用日期: 2016-12-04 22:19 最後更新: 2017-01-22 14:25

回報者:
負責人:
類型:
狀態:
開啟 [Owner assigned]
元件:
里程碑:
(無)
優先權:
3
嚴重程度:
3
處理結果:
檔案:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

Syntax candidate:

diff $<(foo) $<(bar)
tee $>(baz)

Ticket History (2/2 Histories)

2016-12-04 22:19 Updated by: magicant
  • New Ticket "Process substitution" created
2017-01-22 14:25 Updated by: magicant
評語

To support process substitution, we need to open FDs during the four expansions in a manner like opening redirections. It would be a relatively broad change in the expansion algorithm.

We also need to close the FDs after the command finished. It is still unclear how and when they are closed if process substitution is performed outside the argument expansion of a simple command (e.g. in an assignment word or in a here-document or in a case pattern).

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入