Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: parse error in process substitution
- X-seq: zsh-users 13442
- From: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: parse error in process substitution
- Date: Mon, 10 Nov 2008 14:32:51 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20081110142850.0add2680@news01>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20081106150224.GA10992@xxxxxxxxxx> <081106082517.ZM27477@xxxxxxxxxxxxxxxxxxxxxx> <20081110082152.GA9563@xxxxxxxxxx> <20081110142850.0add2680@news01>
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