Ticket #36843

Process substitution

Date d'ouverture: 2016-12-04 22:19 Dernière mise à jour: 2017-01-22 14:25

Rapporteur:
Propriétaire:
État:
Ouvert [Owner assigned]
Composant:
Jalon:
(Aucun)
Priorité:
3
Sévérité:
3
Résolution:
Aucun
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

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
Commentaire

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

Modifier

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