bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coprocess suggestions


From: Pierre Gaston
Subject: coprocess suggestions
Date: Tue, 13 Jan 2009 22:04:25 +0000 (UTC)
User-agent: Alpine 1.10 (NEB 962 2008-03-14)

I have a couple of suggestions about coprocesses.
If I understood correctly how coproc works, I think that
instead of :
coproc [NAME] command [redirections]

the documentation would be a little clearer with something like:

coproc simple-command [redirections]
coproc NAME compound-command [redirections]

The other suggestions is to change the index of the descriptor array,
I find much more natural to think about NAME[0] as the descriptor
number connected to the standard input (0) of the coproc NAME and NAME[1]
as the fd number connceted to the standard output (1) of the coproc NAME rather than the opposite.
(Maybe you have another point of view on this)

Also coproc is not documented via help.

Other than that congrat for this new release.
Thanks.

pgas @ SDF Public Access UNIX System - http://sdf.lonestar.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]