From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: piping surprise
Date: Fri, 5 Apr 2024 16:11:19 -0700 [thread overview]
Message-ID: <cc2d0df8-d4c2-4290-bf50-cecce74a51f7@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7bVTMo3+qQBMSF0mL1rneoFDuVh_-w-ToCsnmW8gZQW=w@mail.gmail.com>
On 2024-04-05 13:32, Bart Schaefer wrote:
> On Wed, Apr 3, 2024 at 11:49 AM Ray Andrews <rayandrews@eastlink.ca> wrote:
>> I believe Bart had a solution to that.
> I can't think what you're referring to, but in the realm of the baroque ...
It was a few years ago. I'd plum forgotten to the point where I was
mystified when the above happened because I've not thought about it
since. But I do remember that Roman was running all sorts of
interesting speed tests. I wish we could search the archives, I'd go
looking for it. I do remember making a typical comment to the effect
that there's nothing intuitive about this subshell business but it turns
out that there are deep reasons for it just the same.
func | ...
... I sorta expect func to do whatever it does, even if the *output* is
piped into a subshell. In the above, I'm expecting my variable to be
modified, pipe or no pipe since the intention of the pipe would seem to
be to modify the output and -- I might have thought -- that's all.
> typeset -gi Pnum
> alias -g '|'='> ${TMPPREFIX}pipe$$.$((++Pnum)) ; < ${TMPPREFIX}pipe$$.$((Pnum))'
Not for thumb-suckers like myself!
next prev parent reply other threads:[~2024-04-05 23:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-03 13:17 Ray Andrews
2024-04-03 15:00 ` Mikael Magnusson
2024-04-03 15:49 ` Ray Andrews
2024-04-05 20:32 ` Bart Schaefer
2024-04-05 23:11 ` Ray Andrews [this message]
2024-04-07 6:34 ` Lawrence Velázquez
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=cc2d0df8-d4c2-4290-bf50-cecce74a51f7@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/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).