From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17867 invoked by alias); 25 Nov 2010 20:50:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28450 Received: (qmail 17560 invoked from network); 25 Nov 2010 20:50:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=GKw8WkRGyB3OJib2pdpBtNTaQlumtGKgNJBJL//bRoA=; b=L4fN4JtXlG4Zwx5b/icNoGkRjCsBcbdJNrO4IY+uVn/7zeq9XQxyq8y8WUfZaN0+gD X1pQS2Gl/qZTOf5tinmknqt9O4E4CssDQ5kcquIeR85fnVJeWcTvozYpGxe9UT6JmDT8 yEEt5yU/dEWQCib++IgS1LmXWPfU5IlJz6mP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; b=HbDU3fKQdECNoFuOVJQ/ggSXLOeqype9tjVoOLEWMilUjvWUlQYWbkSmx+NaPzNKUB StqYd4KNnwWiHtYMYSuf6/uEJFzwovLG9XT2ClJJvHiHohHYlBPQSNnWOGbLW9OiIhmi MFwcFy7iWVfN1qZbNZK77FGYyogrj0VFkZpBY= From: ZyX Reply-To: zyx.vim@gmail.com To: zsh-workers@zsh.org Subject: `jobs' builtin does not work with pipe in scripts Date: Thu, 25 Nov 2010 23:41:43 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.34-zen1; KDE/4.4.5; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2201804.iFcSlJSgoU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201011252341.44512@-zyx> --nextPart2201804.iFcSlJSgoU Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Compare the following two commands: sleep 1s & sleep 1s & jobs -p | while read line ; do echo $line ; done and zsh -c 'sleep 1s & sleep 1s & jobs -p | while read line ; do echo $line= ; done' =2E First command (in interactive shell) works just fine and prints output = of=20 `jobs'. Second command prints nothing, while `jobs -p' without pipe works j= ust=20 fine (but is useless for me). How can this be fixed? zsh-4.3.10-r2 (USE: doc, examples, gdbm, maildir, pcre, unicode), gentoo, a= md64. --nextPart2201804.iFcSlJSgoU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAkzuyggACgkQkOgHluiXxU8ZnwCffw9LIhIk+QZKfD0/9ecUn697 S5YAoIbBWneZd0dpieEjtb00q6MJ++kv =1SRc -----END PGP SIGNATURE----- --nextPart2201804.iFcSlJSgoU--