zsh-users
 help / color / mirror / code / Atom feed
* problem piping output of shell builtin
@ 2004-01-05 19:26 gj
  2004-01-05 20:36 ` Pavol Juhas
  2004-01-05 20:44 ` Vincent Stemen
  0 siblings, 2 replies; 6+ messages in thread
From: gj @ 2004-01-05 19:26 UTC (permalink / raw)
  To: zsh-users

Hi all,

I'm migrating from bash to zsh. It hasn't been so bad because I'm sort of new
to shell programming anyways ( though I did have "fun" figuring out that zsh
arrays start incrementing from 1 as opposed to bash's 0 :). I thought I'd
share the latest hiccup...

Why can't I pipe the output of 'jobs' thusly?

	% zsh --version
	zsh 4.0.7 (alpha--netbsd)
	% sleep 100
	^Z
	zsh: suspended  sleep 100
	% sleep 100
	^Z
	zsh: suspended  sleep 100
	% jobs
	[1]    suspended  pine
	[2]  - suspended  sleep 100
	[3]  + suspended  sleep 100
	% jobs | while read line; do echo $line; done
	%

I expect the output of last sequence of commands to be more or less the same
to the sequence before it, as under bash. How can I approximate the bashlike
behavior I expect under zsh?

Thanks for any insight,
Gerald.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-06  1:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-05 19:26 problem piping output of shell builtin gj
2004-01-05 20:36 ` Pavol Juhas
2004-01-05 21:30   ` Vincent Stemen
2004-01-06  1:24     ` Bart Schaefer
2004-01-06  1:39     ` Pavol Juhas
2004-01-05 20:44 ` Vincent Stemen

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).