Bug 146330 - tcsh doesn't expand %d, %s format specifiers correctly
tcsh doesn't expand %d, %s format specifiers correctly
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: tcsh (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Bill Huang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-26 21:33 EST by Charles R. Anderson
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 6.13-10.FC3.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-02-26 12:24:56 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Charles R. Anderson 2005-01-26 21:33:47 EST
Description of problem:

tcsh is behaving very strangely with respect to outputting messages
that involve replacing format specifiers with actual variable values.  
The %d, %s, etc. format specifiers are being output literally, and
some parts of the output are being duplicated.  This occurs in many
different places where tcsh displays messages/prompts for the user.  I
have noticed it so far in the "You have new mail" message and the
prompt that tcsh displays when a tab-completion or ctrl-d completion
output would exceed the listmax setting.

Version-Release number of selected component (if applicable):
tcsh-6.13-9

How reproducible:
Always

Steps to Reproduce:
1. set mail=(1 /var/spool/mail/$USER)
2. send yourself some mail
3. set listmax=75
4. g<ctrl-d> to list completions of commands that begin with 'g'
  
Actual results:

You have You have %smail.
mail.
[test@jet ~]$ g
There are 230 There are %d %s, list them anyway? [n/y] , list them
anyway? [n/y]

Expected results:

You have new mail.
[test@jet ~]$ g
There are 230 items, list them anyway? [n/y]
Comment 1 Miloslav Trmač 2005-01-30 15:49:15 EST
Fixed in tcsh-6.13-11, which should appear in rawhide soon.
Thanks for the bug report.
Comment 2 Charles R. Anderson 2005-02-15 22:35:18 EST
Rebuilding the rawhide package on FC3 solves the problem.  Can you
push a build for FC3 updates?

Thanks.
Comment 3 Miloslav Trmač 2005-02-16 03:09:29 EST
Will do...
Comment 4 Miloslav Trmač 2005-02-26 12:24:56 EST
tcsh-6.13-10.FC3.1 has been published.

Note You need to log in before you can comment on or make changes to this bug.