The bash conditional statement treats both numbers as strings because of the leading zero in the second number (0330). In Octal notation, 0330 is equivalent to decimal 216. Therefore, when comparing the two numbers as strings, 216 is considered larger than 0330 because it has a larger numeric value.
Asked: 2022-12-06 11:00:00 +0000
Seen: 14 times
Last updated: Nov 23 '21