From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: "Jack McKinney" <jackmc-zsh-users@lorentz.com>, zsh-users@sunsite.auc.dk
Subject: Re: for loop body works, but not when called from for loop...
Date: Tue, 7 Nov 2000 11:38:12 -0800 [thread overview]
Message-ID: <001107113812.ZM13332@candle.brasslantern.com> (raw)
In-Reply-To: <20001107113047.A32446@stocks.pillory.com>
On Nov 7, 11:30am, Jack McKinney wrote:
> Subject: for loop body works, but not when called from for loop...
>
> for i in $(find . -name \*.pgp | fgrep -v ring.pgp) ; do ;
> echo $i ; pgp -fd -z "My passphrase" < $i |
> gpg --passphrase-fd 3 --batch -c 3<<< "My passphrase" > ${i%pgp}gpg ; done
>
> When I run it, it echoes the first file it finds, and creates the .gpg
> file (since it is stdout of one of the commands). However, the file never
> gets any data in it. [...] the echo command echoes the correct filename
> (./test.pgp), but it just hangs there.
What version of zsh are we talking about?
Are you typing out that loop at a shell prompt, or is it in a script? If
the latter, what else is in the script? When you run the non-loop trial,
is everything the same except for the loop?
What happens if you run the loop version, and type control-D to send it an
EOF when it seems hung?
Something must be waiting for input. I don't know exactly what, or whether
it might have something to do with file descriptor 3.
next prev parent reply other threads:[~2000-11-07 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-07 17:30 Jack McKinney
2000-11-07 19:38 ` Bart Schaefer [this message]
2000-11-07 19:44 ` Jack McKinney
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=001107113812.ZM13332@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=jackmc-zsh-users@lorentz.com \
--cc=zsh-users@sunsite.auc.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).