From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27588 invoked by alias); 30 Jan 2016 14:44:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21208 Received: (qmail 7163 invoked from network); 30 Jan 2016 14:44:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-PDA-ORIGIN: gallois.livando.com Message-ID: <1454164684.1526.25.camel@gladbachcity.de> Subject: Re: Feature request (@M):# with context matches From: Christian Heinrich To: zsh-users@zsh.org Date: Sat, 30 Jan 2016 15:38:04 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-IO+yHk4iG8qCU3E5zNo0" X-Mailer: Evolution 3.18.3-1 Mime-Version: 1.0 --=-IO+yHk4iG8qCU3E5zNo0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Sebastian, I'm not sure what you want to do, but I my guts tells me that you want to re-invent the wheel as you stated that you want to replace several tools with ZSH. If you can achieve your goal by calling a GNU tool, you should do that. These are mature tools and there is nothing wrong about using them. (And it's certainly a benefit that you don't have to maintain them.) Calling "grep" is also more understandable by everyone than the pattern you gave in your first email. Best regards Christian > The idea is to confront Bash Advanced Scripting Guide coders, BASG > coders for short. Every sed, awk, grep can be replaced by Zsh code. > No > need for `` / $() what Bash coders love (not all, could name at least > one that doesn't, is present at #zsh IRC channel). However, grep -C > is > not very possible to replace with Zsh code. I plan to write > Markdown/PDF=C2=A0=C2=A0document where every GNU utility will be coded vi= a > native Zsh code, without forks, and the grep -C is one problem that I > can perceive now. >=20 > Best regards, > Sebastian Gniazdowski --=-IO+yHk4iG8qCU3E5zNo0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIcBAABCgAGBQJWrMrMAAoJEIvOFdNRb8w8R18P/Axhi0zESuUpr+xWfursSMoT APnyli68mLV5UcsYDWvHtzs6JQl7MZWptePaXBMQ9FDekIxGvJ/WSoWEJWVIGlKl 628baGTfNkFNf7KjFKfFHVmBd+F7T48P7XtzClnq2yppxTuormbmMYbDACdZ+lOc 2RhVbQuCB1nyJvJaC7xt9gcDM5HNT4S2W3nQRufHqHw6FBfRDaILAOXvZhM3Z8Si pwhZhdNG6PVhQplDY7MJZQ5Dskk6/u2oSgaZ4k6Asr2klbmZK+6TBiXO5xZ6WG/O 48bHp/no2TxxAlzSkO8REuWD1LoTeszhFKZVBbxp13wVeCLrIif9c1x5rAn8WBPC dqytaN8ZfKyciARhfXxMuhQL+3OrMTBjPpiPps0wzAPpDL1wYhDDbPYDHIjWf0CC +Ha6NjKmKRreGqVy6ct8aqYwgFPKfVP84wxKI9L59N7NYNwMfq1HFKUPcPX5i6Eh ASM9zcdqhoIaRmYrbEMOkECBok7jOQ+5BLgBB7TQARUuGG89fn4f5mQBAk/mUmPx cgJi783Mh8X/17v2dGbHJzobtTxwTGcApMcrp4lkVmOSO5IZoVfdSkEtuNQvo4dB IZzMARv/GjUu/oSm52FQdBJET2OQmrQImRfVtX4A2jeFJXbuj7t7rkuHBKBJlRW2 Hp6dxh57/9fWJtgEJaaI =S49p -----END PGP SIGNATURE----- --=-IO+yHk4iG8qCU3E5zNo0--