1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

popen: Correct 'pipeline' docstring.

* module/ice-9/popen.scm (pipeline): Change docstring for correct
Texinfo syntax and to use commas instead of em dashes, as in the manual.
This commit is contained in:
Ludovic Courtès 2020-06-19 21:06:09 +02:00
parent c7f76d94da
commit 5f22d1090b

View file

@ -215,10 +215,10 @@ information on how to interpret this value."
(open-pipe command OPEN_BOTH))
(define (pipeline commands)
"Execute a pipeline of @var(commands) -- where each command is a list of a
program and its arguments as strings -- returning an input port to the
"Execute a pipeline of @var{commands}, where each command is a list of a
program and its arguments as strings, returning an input port to the
end of the pipeline, an output port to the beginning of the pipeline and
a list of PIDs of the processes executing the @var(commands)."
a list of PIDs of the processes executing the @var{commands}."
(let* ((to (pipe->fdes))
(pipes (map (lambda _ (pipe->fdes)) commands))
(pipeline (fold (lambda (from proc prev)