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

Re: parse error in process substitution



Peter Stephenson wrote:
> 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.

Actually, come to think of it, there's no obvious gain over the simpler

  root-tail-args() {
     root-tail ${1},$2
  }

  root-tail-args <(ssh root@xxxxxxxxxxxx tail -F /var/log/kern.log) ,red,

-- 
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