Nguyễn Gia Phong <[email protected]> skribis: > On 2026-05-27 at 23:33+02:00, Ludovic Courtès wrote: >> Nicolas Graves skribis: >> > In particular, I find pipes and redirection much easier to understand >> > and use than what I currently do. >> >> We don't really do pipes or similar in package definitions though; >> what examples did you have in mind? > > Please look for open-pipe, and they are not > the most intuitive uses of pipes.
Oh yes, I agree. On the plus side, there are “only” 33 uses of ‘open-pipe’ in gnu/packages/*.scm. That reminds me also of ‘pipeline’, which Rutger added to Guile a while back precisely as a way to simplify plumbing (pun intended): https://doc.guix.gnu.org/guile/latest/en/html_node/Pipes.html#index-pipeline Still more work than in shell or Janet or Scsh or Rash, but an improvement. One could build a wrapper around ‘pipeline’ that takes care of calling ‘waitpid’ and throws when one of the processes has failed. (‘pipeline’ uses ‘posix_spawn’ under the hood.) Ludo’.
