From: Le Wang <lewang@yahoo.com>
To: zsh-users@sunsite.dk
Subject: Re: pipe issues with 'jobs' command
Date: Mon, 29 Oct 2001 23:14:49 -0500 (EST) [thread overview]
Message-ID: <20011030041449.97914.qmail@web12303.mail.yahoo.com> (raw)
In-Reply-To: <20011029002105.B3832@astaroth.sweth.net>
--- Sweth Chandramouli <svc@sweth.net> wrote:
> On Sun, Oct 28, 2001 at 08:37:48PM -0500, Le Wang
> wrote:
> > Pretty weird, eh?
> Not really; this is the expected behaviour. This
> was
> just discussed in another thread earlier this month;
> search the archives
> for the thread "get the number of active jobs to
> show in the prompt?".
>
> -- Sweth.
>
> --
> Sweth Chandramouli ; <svc@idiopathic.net>
> President, Idiopathic Systems Consulting
okay, thanks a lot. That's really helpful. So a
subshell was being created on the lhs of the
pipe...that makes sense. But looking at the following
code from my .zshrc:
--------------
getJobCount () {
print "$#jobtexts";
}
prompt_le1_precmd () {
PS1="$(getJobCount) %# "
PS2="%_> "
PS3="?# "
}
--------------
If I call getJobCount from the shell directly (e.g.
execute the command 'getJobCount'), I get the real
number of jobs, but my prompt always prints 0. What's
going on here?
thanks
-lw
_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca
next prev parent reply other threads:[~2001-10-30 4:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 1:37 Le Wang
2001-10-29 5:21 ` Sweth Chandramouli
2001-10-30 4:14 ` Le Wang [this message]
2001-10-30 4:20 ` Zefram
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=20011030041449.97914.qmail@web12303.mail.yahoo.com \
--to=lewang@yahoo.com \
--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).