From 47e55bf3d5049608795d2351a9a0e1f644cc5723 Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:24:25 +0100 Subject: [PATCH] Update bits-info.sh --- tools/bits-info.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/bits-info.sh b/tools/bits-info.sh index 16c81c15..773c0af1 100755 --- a/tools/bits-info.sh +++ b/tools/bits-info.sh @@ -1126,15 +1126,17 @@ main() awk_printf_unsigned_bit="$(convert_max_unsigned_int_to_bit "${_max}")" || awk_printf_unsigned_bit='unknown' echo '---' -: | cut 2> /dev/null -b "1000000000000000" && echo ok || echo $? +: | cut 2> /dev/null -b "4294967295" && echo ok || echo $? echo '---' -: | cut 2> /dev/null -b "10000000000000000" && echo ok || echo $? +: | cut 2> /dev/null -b "100000000000000" && echo ok || echo $? echo '---' -: | cut 2> /dev/null -b "100000000000000000" && echo ok || echo $? +: | cut 2> /dev/null -b "10000000000000" && echo ok || echo $? echo '---' -: | cut 2> /dev/null -b "1000000000000000000" && echo ok || echo $? +: | cut 2> /dev/null -b "1000000000000" && echo ok || echo $? echo '---' -: | cut 2> /dev/null -b "9223372036854775807" && echo ok || echo $? +: | cut 2> /dev/null -b "100000000000" && echo ok || echo $? +echo '---' +: | cut 2> /dev/null -b "10000000000" && echo ok || echo $? echo '---' exit 0 _max='-1'