From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Error "job table full"
Date: Wed, 9 Jun 2004 01:26:53 +0200 [thread overview]
Message-ID: <20040608232653.GG2757@ay.vinc17.org> (raw)
In one of my shells, I get the error
precmd:3: job table full
before each prompt. This suddenly appeared (after typing the command
"svn ci"). Here's my precmd function:
precmd () {
local njobs
if [[ $domain = local.ay && "$(pmu_battery)" = "Battery" ]]
then
psvar[1]="[$(pmu_percent)%]"
else
psvar[1]=""
fi
njobs=$#jobstates
case $njobs in
(0) psvar[2]=() ;;
(1) psvar[2]="1 job" ;;
(*) psvar[2]="$njobs jobs" ;;
esac
[[ -n $TTY && $TERM = (xterm*|dtterm|rxvt|screen*) ]] && {
print -nP "\e]1;%m:%.\x07"
print -nP "\e]2;%(2v. %2v |.)${WINTITLE:+ $WINTITLE |} %n@%m - %~ | %y"
[[ $TERM = screen* ]] && print -n .
print -n "\x07"
} > $TTY
}
There are no current jobs.
The error comes from the "$(pmu_battery)" = "Battery" test, as this
can be seen:
ay:~> [[ "$(true)" = blah ]]
zsh: job table full
precmd:3: job table full
ay:~[1]>
But no problem with:
ay:~> [ "$(true)" = blah ]
zsh: exit 1
precmd:3: job table full
ay:~[1]>
Also,
ay:~> [[ "$(echo blah)" = blah ]]
zsh: job table full
precmd:3: job table full
ay:~[1]>
but
ay:~> [[ blah = blah ]]
precmd:3: job table full
ay:~>
zsh version is 4.2.0 (Debian package zsh 4.2.0-11).
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
next reply other threads:[~2004-06-08 23:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-08 23:26 Vincent Lefevre [this message]
2004-06-09 9:38 ` Peter Stephenson
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=20040608232653.GG2757@ay.vinc17.org \
--to=vincent@vinc17.org \
--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).