Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-17
04:37 • Ticket [218032ffff] XPG3 format specifiers don't work status still Close... artifact: 15a53c9337 user: dgp
2000-10-26
08:13 • Closed ticket [218032ffff]. artifact: 16e6782923 user: welch
00:52 • New ticket [218032ffff]. artifact: acf75f7627 user: nobody

XPG3 format specifiers don't work

Closed / Fixed218032ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:23
OriginalBugID: 1301 Bug
Version: 8.1b1
SubmitDate: '1999-02-25'
LastModified: '1999-03-13'
Severity: CRIT
Status: Closed
Submitter: pat
ChangedBy: rjohnson
OS: Windows 98
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-03-13'


Name:
Christopher Nelson

ReproducibleScript:
format {/%2$*s/%1$3s/} a b 5




ObservedBehavior:
expected integer but got "b"





DesiredBehavior:
/b     /a  /






The documentation of [format] may be wrong or I may be confused but I
think my example should do what [format] is intended to do.

I think you just got it wrong.  Here is an example that gives the output
you desired:

format {/%2$-3s/%1$-3s/} a b 5

Appears to work to be - I'm closing this bug.  03/13/1999 15:27 - rjohnson -
welch Closed ticket [218032ffff]. [History diff]2000-10-26 08:13:42
dgp Ticket [218032ffff]: 3 changes [History diff]2001-04-17 04:37:36
Log in (anonymous is fine) to add a comment.