Skip to content

Update to 5.2.026-3 breaks builtin printf behaviour

Description:

After the update to 5.2.026-3 builtin printf is misbehaving.

Before:

# bash -c 'printf "%.0f\n" 4.3'
4

After:

# bash -c 'printf "%.0f\n" 4.3'
nan

Additional info:

  • package version(s): 5.2.026-3
  • Downgrading to 5.2.026-2 fixes the issue
  • Calling /usr/bin/printf(to ignore bash builtin) instead returns the correct result (in any of the 2 releases)

Steps to reproduce:

  • Upgrade bash to 5.2.026-3
  • In a new session call printf "%.0f\n" 4.3.
  • Expected result: 4. Gets 'nan' or '-nan'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information