Skip to main content
2 of 4
quotes needed for zsh and csh.
Stéphane Chazelas
  • 585.2k
  • 96
  • 1.1k
  • 1.7k

You can use pipexec:

$ pipexec -- '[A' cmd1 ] '[B' cmd2 ] '{A:1>B:0}' '{B:1>A:0}'