Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature wish: support printf "precision" for strings #8037

Closed
vicuna opened this issue Feb 28, 2003 · 2 comments
Closed

feature wish: support printf "precision" for strings #8037

vicuna opened this issue Feb 28, 2003 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Feb 28, 2003

Original bug ID: 1566
Reporter: administrator
Status: closed (set by @mshinwell on 2016-12-07T17:28:52Z)
Resolution: duplicate
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #8036

Bug description

Full_Name: Eric Cooper
Version: 3.06
OS: linux
Submission from: 12-227-100-158.client.attbi.com (12.227.100.158)

Please consider supporting the "precision" field in the %s printf conversion.
In C, this limits the printed string to that many characters. For example,
printf "%-8.8s" string
would print exactly 8 characters, no matter how long [string] is. And it should
work if the spec is indirect:
printf "%*.*s" 8 8 string

@vicuna
Copy link
Author

vicuna commented Feb 28, 2003

Comment author: administrator

cf. #8036

@vicuna
Copy link
Author

vicuna commented Dec 7, 2016

Comment author: @mshinwell

This is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant