Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Error "job table full"



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