[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf %m$ and %*m$ unimplemented in Bash, but implementated in C co
From: |
Collin Funk |
Subject: |
Re: printf %m$ and %*m$ unimplemented in Bash, but implementated in C compilers |
Date: |
Mon, 27 May 2024 18:20:37 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
porterleete <porterleete@gmail.com> writes:
> Fix:
> Either update the documentation of what printf in bash actually does.
> If printf is using a standard for printf other than "what the biggest
> C compilers currently do", document which standard it's using or
> update it to the newest standard used by gcc and clang. If it really
> is just this one feature that's missing, add it in or document its
> absence.
The 'printf' in shells is different than the 'printf' specified by ISO
C/POSIX. The documentation for the bash built-in can be found here:
$ info '(bash)Bash Builtins'
The 'printf' provided in your C library should be found in man page
section 3. Your system probably comes with a program (not a shell
built-in) too. That can be found in man page section 1.
# C library.
$ man -s 3 printf
# System program.
$ man -s 1 printf
Collin