Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh custom pipeline handler
- X-seq: zsh-users 21427
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zsh custom pipeline handler
- Date: Thu, 31 Mar 2016 07:41:20 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=gO26terEckcg+TsSa0YVBmuazDn4xac1Ned+gMS6S4Q=; b=wf+o7ohPzWrUF1Bs/5ZW3g22TSBX6/daa17xSVPlBmJyu6lcfIwD9wH+GgS8k/h1o1 lfGfjvrwSYlvU0XIKG3kUDMFmnZ5GTbWoZCrrAXQj5KdQPgS9eyah0RGvSr1zvX7gUHY fOa/iTHhBlFmS8FKqvjeWvjCuPHC6Ezv+pcpejHv0aNpjn9JWJsxgHzKOjPEOqfL2ZEf bRew3+jEis1HEUz4Ez2y3JbTQsHA8CITYlONFD9XT+SEe6aSaa9PQ2h/4sPKRqCUnCFt TOAcRXIgOJQUHbyKP5wv+anpw7Zh8b5/ull5raVitDs+QLawtOVsjUgvPQWKB/cDZ9pj OTRQ==
- In-reply-to: <1459421593.1010.12.camel@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1459421593.1010.12.camel@gmail.com>
On Mar 31, 1:53pm, disarmer wrote:
}
} How can i define my own builtin, which can get pipeline, like zsh's
} builtin "repeat"?
You can't. "repeat" isn't a builtin, it's a keyword, part of the
language syntax, and the shell language doesn't provide a way to add
new language elements at that level. Even the zmodload system is
quite limited in what can be done in this regard.
Depending on exactly what you want to accomplish, you might be able
to use an alias to get close. What is it that myrepeat would do?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author