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