bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

built-in printf returns success when integer is out of range


From: thomas
Subject: built-in printf returns success when integer is out of range
Date: Wed, 26 Jul 2023 13:18:58 -0700

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux fnord42 6.1.25-1rodete1-amd64 #1 SMP
PREEMPT_DYNAMIC Debian 6.1.25-1rodete1 (2023-05-11) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
        printf '%d\n' 111111111111111111111111111 && echo success
        prints "success"
        /usr/bin/printf does not, but instead returns EXIT_FAILURE (1).

Repeat-By:
        Run:
        printf '%d\n' 111111111111111111111111111 && echo success



reply via email to

[Prev in Thread] Current Thread [Next in Thread]