From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12920 invoked from network); 30 May 2002 15:36:55 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 May 2002 15:36:55 -0000 Received: (qmail 22666 invoked by alias); 30 May 2002 15:36:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5019 Received: (qmail 22635 invoked from network); 30 May 2002 15:36:37 -0000 Date: Thu, 30 May 2002 17:36:35 +0200 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: zsh: Strange feature with 'jobs' commmand Message-ID: <20020530173635.A3072@globnix.org> Mail-Followup-To: zsh-users@sunsite.dk References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from Andrej.Borsenkow@mow.siemens.ru on Thu, May 30, 2002 at 04:37:54PM +0400 X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2002-05-30 at 16:37 +0400, Borsenkow Andrej wrote: > IIRC bash runs right part of every pipe in subshell. We run left pipe. > This makes it possible to do something like >=20 > foo | read FOO_RESULT >=20 > that assigns return value of foo to FOO_RESULT. It does not work in bash. > Just how useful (often used) this feature is is different qustion :-) Useful, and I use it more often than I'd like, given the sort of things I end up having to use it for -- killing recalcitrant processes. Constructs for getting PID listings and storing them in an array, for later iteration, etc. Since my employer doesn't have zsh installed by default, except on machines installed within the last few months (*ahem* guess who wrote the new installation procedure?), I often end up having to move to Perl. Some tasks _can_ be done in bash, messing around with extra subshells, but it gets grotty fast. zsh keeping the RHS as the parent lets me do a lot of sysadmin tasks more fluently than using bash or dropping to Perl. --=20 Compounding the problem are people who insist on confusing "problems with executable MIME attachments" with "problems with all MIME attachments becau= se one vendor ships a product that will execute anything that resembles ones a= nd zeros more than my goldfish does". -- Valdis Kletnieks --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (OpenBSD) iD8DBQE89kcCfDS04Uzk9lURAnrVAJ0Q9yKu01uORy8s7F/N3ww0S6TiggCffNfc 7DmhEbp/08geF/bSoj8jC3A= =tQGX -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--