Overview
| Artifact ID: | 2fab18d5881d8bfeadd5c3ed59b5a8bf5dd39046 |
|---|---|
| Ticket: | 219021ffffffffffffffffffffffffffffffffff
format "%05s" 12 returns 12 padded on left with blanks; prev |
| User & Date: | nobody on 2000-10-26 01:09:33 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3992 Bug Version: 8.2 SubmitDate: '2000-01-10' LastModified: '2000-01-10' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: HP-UX OSVersion: HP-UX B.10.20 Machine: HP 9000/892 FixedDate: '2000-01-10' FixedInVersion: 8.2.3 ClosedDate: '2000-10-25' Name: Paul Takemura Extensions: protclsh82, Oratcl Comments: Perhaps the format command is now working with the correct behavior. I can certainly use "%05d" as a format specifier, but this assumes that I'm formatting an integer (which may not always be the case). ReproducibleScript: format "%05s" 12 ObservedBehavior: returns bbb12 (where 'b' represents blank) DesiredBehavior: In the past, the command has returned 00012 This was already fixed in an 8.2 patch release (for sure 8.2.3), but it should be noted that the user is relying upon "undefined" behavior (according to ANSI spec), so we just made it work like 8.0, but this behavior is still undoc'ed. -- 01/10/2000 hobbs
- foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "81. Bundled Packages"
- title changed to:
format "%05s" 12 returns 12 padded on left with blanks; prev
- type changed to: "Bug"