#!/bin/bash
result=090543
level=1000
if (( 10#"$result" > "$level" ))
then
echo hahahah
fi
shell中把090543这中数字前面的0会识别为8进制所以在比较中会报错:./a.sh: line 4: ((: 090543: value too great for base (error token is "090543")
添加上10# 即识别为十进制