Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Error "job table full"
- X-seq: zsh-users 7498
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Error "job table full"
- Date: Wed, 9 Jun 2004 01:26:53 +0200
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: Vincent Lefevre <vincent@xxxxxxxxxx>
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@xxxxxxxxxx> - 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author