zsh-users
 help / color / mirror / code / Atom feed
* Error "job table full"
@ 2004-06-08 23:26 Vincent Lefevre
  2004-06-09  9:38 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 2004-06-08 23:26 UTC (permalink / raw)
  To: zsh-users

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


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

* Re: Error "job table full"
  2004-06-08 23:26 Error "job table full" Vincent Lefevre
@ 2004-06-09  9:38 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2004-06-09  9:38 UTC (permalink / raw)
  To: zsh-users

Vincent Lefevre wrote:
> In one of my shells, I get the error
> 
> precmd:3: job table full
> 
> before each prompt.

Wayne traced this and it's fixed by zsh-workers/19976.

I will be producing a 4.2.1 shortly.  If there are any issues you think
really need attending to, it might be a good idea to post or repost
them to zsh-workers.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-08 23:26 Error "job table full" Vincent Lefevre
2004-06-09  9:38 ` Peter Stephenson

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