Description of problem: [root@camden root]# ls /opt/resin 2.1.10 2.1.20 2.1.300 2.1.4 2.1.40 [root@camden root]# /bin/ls -d /opt/resin/* | sort -r | head -1 /opt/resin/2.1.40 [root@camden root]# It should have picked '2.1.300'. It needs to be doing a numeric sort on the 3rd field, and only look for files named 2.1.x Something like the following adapted code should work: /bin/ls -d /opt/resin/2.1.* | sort -t . -k 3 -n -r | head -1 This is also relevant for tomcat. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
@40729
closing old tickets