Package: tcsh
Version: 6.14.00-1
Severity: normal

A $prompt for tcsh containing the substring '%j' does not work as
documented ('%j' means the number of backgound jobs according to
tcsh(1).) Instead, if the above mentioned substring is contained in
$prompt, the whole prompt _just_ contains the number of jobs.

BTW: That number is also updated in a somehow delayed kind -- only the
next non-internal command after putting a job in the background updates
the prompt, e.g. fg, bg, jobs, etc. do not update it while calling an
non-existent command, e.g. 'c', works fine updating the number. But I
think, it doesn't make sense to file that bug as long as %j is nearly
complete unusable.

Example:

  set prompt='%S\\!%h ?%? %%%j L%$shlvl%s [EMAIL PROTECTED]:%l%b'" %B%P [%c05] 
%#%b "

results in a prompt just containing 

  0

while

  set prompt='%S\\!%h ?%? %%X L%$shlvl%s [EMAIL PROTECTED]:%l%b'" %B%P [%c05] 
%#%b "

works fine (number of jobs replaced by 'X') and results on this box to 

  !19 ?0 %X L1 [EMAIL PROTECTED]:pts/3 16:13:32 [~] > 

P.S.: This bug also seems to be in Sarge's version of tcsh (6.13.00),
not only in Sid's version (6.14.00). In Woody's 6.11.00 the problem
didn't appear since the %j feature was introduced in 6.11.01. (Where it
worked when compiled from sources. I also remember that a self compiled
6.12.00 worked fine.)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-386
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)

Versions of packages tcsh depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libncurses5                   5.4-9      Shared libraries for terminal hand

tcsh recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to