Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.