zsh-users
 help / color / mirror / code / Atom feed
From: Phil Pennock <Phil.Pennock@globnix.org>
To: zsh-users@sunsite.dk
Subject: Re: zsh: Strange feature with 'jobs' commmand
Date: Thu, 30 May 2002 17:36:35 +0200	[thread overview]
Message-ID: <20020530173635.A3072@globnix.org> (raw)
In-Reply-To: <Pine.SV4.4.44.0205301632500.21658-100000@itsrm2.mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Thu, May 30, 2002 at 04:37:54PM +0400

[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]

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
> 
> foo | read FOO_RESULT
> 
> 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.
-- 
Compounding the problem are people who insist on confusing "problems with
executable MIME attachments" with "problems with all MIME attachments because
one vendor ships a product that will execute anything that resembles ones and
zeros more than my goldfish does".  -- Valdis Kletnieks

[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

  reply	other threads:[~2002-05-30 15:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-30 11:54 Björn Johannesson
2002-05-30 12:16 ` Oliver Kiddle
2002-05-30 12:37   ` Borsenkow Andrej
2002-05-30 15:36     ` Phil Pennock [this message]
2002-05-30 12:33 ` $jobstates (Re: zsh: Strange feature with 'jobs' commmand) Thomas Köhler
2002-05-30 12:48   ` Sven Wischnowsky
2002-05-30 13:25     ` Thomas Köhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020530173635.A3072@globnix.org \
    --to=phil.pennock@globnix.org \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).