-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Implement printf %*s and %.*s #650
Comments
OK interesting, which programs use it? That will help prioritize things, e.g. we want to fill out more of: https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run-Under-OSH |
Well, um, it was used in |
#653 also mentioned |
This basically uses the first argument as a replacement for the asterisk, i.e.
printf '%*s' 10 foo
should be equivalent toprintf %10s foo
andprintf '%.*s' 2 bar
should be equivalent toprintf '%.2s' bar
.The text was updated successfully, but these errors were encountered: