mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 20:50:42 +02:00
minor updates to several tests
This commit is contained in:
+2
-1
@@ -13,7 +13,8 @@
|
||||
#
|
||||
|
||||
# tests of integer overflow for field width and precision arguments
|
||||
INT_MAX=$(getconf INT_MAX)
|
||||
INT_MAX=$(getconf INT_MAX 2>/dev/null)
|
||||
[ -z "$INT_MAX" ] && INT_MAX=2147483647 # assume 32 bits
|
||||
TOOBIG=$(( $INT_MAX * 10 ))
|
||||
|
||||
printf '[%*s]\n' "${TOOBIG}"
|
||||
|
||||
Reference in New Issue
Block a user