Date:Wed, 15 May 2024 02:33:23 +0300
From:Valery Ushakov
Message-ID:
| I vaguely remember I read somewhere that printf(1) was specifically
| conceived to take no options, but that can be planted memories. May
| be it's indeed induced by the old state of
On Wed, May 15, 2024 at 05:22:25 +0700, Robert Elz wrote:
> | Unfortunately that advice is not true without further caveats.
>
> That you have to actually write a valid printf(1) command, and not
> simply s/echo/printf/ ? Does that really need saying?
>
>
> | netbsd$ sh -c "printf
Date:Tue, 14 May 2024 12:41:51 +0300
From:Valery Ushakov
Message-ID:
| Unfortunately that advice is not true without further caveats.
That you have to actually write a valid printf(1) command, and not
simply s/echo/printf/ ? Does that really need saying?
|
On Tue, May 14, 2024 at 01:32:25 +, David H. Gutteridge wrote:
> Log Message:
> echo.1: borrow advice about printf(1) from the OpenBSD man page
Unfortunately that advice is not true without further caveats.
netbsd$ sh -c "printf '-V\n'"
-V
$ busybox sh -c "printf '-V\n'"
-V
ubuntu$ $ dash
Module Name:src
Committed By: gutteridge
Date: Tue May 14 01:32:25 UTC 2024
Modified Files:
src/bin/echo: echo.1
Log Message:
echo.1: borrow advice about printf(1) from the OpenBSD man page
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20
Module Name:src
Committed By: gutteridge
Date: Tue May 14 01:32:25 UTC 2024
Modified Files:
src/bin/echo: echo.1
Log Message:
echo.1: borrow advice about printf(1) from the OpenBSD man page
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20
Module Name:src
Committed By: rillig
Date: Tue Nov 16 21:38:29 UTC 2021
Modified Files:
src/bin/echo: echo.c
Log Message:
echo: fix lint error due to strict bool mode
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23
Module Name:src
Committed By: rillig
Date: Tue Nov 16 21:38:29 UTC 2021
Modified Files:
src/bin/echo: echo.c
Log Message:
echo: fix lint error due to strict bool mode
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23
On Thu, Nov 11, 2021 at 05:03:41 +0700, Robert Elz wrote:
> Date:Wed, 10 Nov 2021 22:17:05 +0300
> From:Valery Ushakov
> Message-ID:
>
> | > in the sense that simply falling out of main() is exit(0)?
> |
> | Surprisingly - yes.
>
> That's appalling, but
Date:Wed, 10 Nov 2021 22:17:05 +0300
From:Valery Ushakov
Message-ID:
| > in the sense that simply falling out of main() is exit(0)?
|
| Surprisingly - yes.
That's appalling, but perhaps not surprising.
It breaks code which believed what was promised, and did
On Wed, Nov 10, 2021 at 17:35:45 +, Robert Elz wrote:
> And second, does C99 really promise:
> Remove unnecessary call to exit(0); returning from main is equivalent
> since C99.
> in the sense that simply falling out of main() is exit(0)?
Surprisingly - yes.
Derek M. Jones in
Module Name:src
Committed By: kre
Date: Wed Nov 10 17:35:45 UTC 2021
Modified Files:
src/bin/echo: echo.c
Log Message:
With -Wall compiling this was giving:
echo.c: In function 'main':
echo.c:74:1: warning: control reaches end of non-void function
This
Module Name:src
Committed By: kre
Date: Wed Nov 10 17:35:45 UTC 2021
Modified Files:
src/bin/echo: echo.c
Log Message:
With -Wall compiling this was giving:
echo.c: In function 'main':
echo.c:74:1: warning: control reaches end of non-void function
This
Module Name:src
Committed By: rillig
Date: Sun Oct 10 19:07:19 UTC 2021
Modified Files:
src/bin/echo: Makefile echo.c
Log Message:
echo: clean up, increase WARNS to 6
Lint can handle __COPYRIGHT and __RCSID, so there is no need to hide
them anymore.
Use proper type
Module Name:src
Committed By: rillig
Date: Sun Oct 10 19:07:19 UTC 2021
Modified Files:
src/bin/echo: Makefile echo.c
Log Message:
echo: clean up, increase WARNS to 6
Lint can handle __COPYRIGHT and __RCSID, so there is no need to hide
them anymore.
Use proper type
15 matches
Mail list logo