Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: parse error in process substitution



On Mon, 10 Nov 2008 09:21:52 +0100
Louis-David Mitterrand <vindex+lists-zsh-users@xxxxxxxxxxx> wrote:
> So how would you convert that working bash command to zsh?
> 
> 	root-tail <(ssh root@xxxxxxxxxxxx tail -F /var/log/kern.log),red,

Something like

  root-tail-procsub-internal() {
    root-tail ${1},$2
  }

  root-tail-procsub() {
    root-tail-procsub-internal <(eval $1) $2
  }

and then call

  root-tail-procsub 'ssh root@xxxxxxxxxxxx tail -F /var/log/kern.log' ,red,

or variations.

It would be good to fix the underlying problem; it will work a little
differently from the way it is now, but that's so confusing if the <(...)
isn't in a separate word that I don't think there's a good reason to keep
it.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author