Overview
| Artifact ID: | 8b0c235ce24381692a3f39052b8ec3b6e4f7cd9d164c2d2c85943488a69ec596 |
|---|---|
| Ticket: | af4780b0b5245f035803b5fbeb1cfae62f40f821
Improve format #d documentation |
| User & Date: | oehhar on 2025-09-03 11:37:26 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
On clt, there was the following proposal by Marc Summerfield on the "#" specifier of the format command man page: <verbatim> I suggest replacing: For d conversions, 0d there is no effect unless the 0 specifier is used as well: In that case, 0d will be added to the beginning. with: For d conversions, 0d has no effect; whereas both #d and #0d produce an 0d prefix. Might also be worth adding: Note that width includes any prefix. For example "%06d" shows at least 6 digits, but "%#06d" shows at least 4 digits. Evidence: Main console display active (Tcl9.0.2 / Tk9.0.2) (mark) 61 % format "%d %0d %06d %#d %#0d %#06d" 12 13 14 15 16 17 12 13 000014 0d15 0d16 0d0017 </verbatim> - foundin changed to: "main"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "16. Commands A-H"
- title changed to: "Improve format #d documentation"
- type changed to: "RFE"