Opened 11 years ago

Last modified 11 years ago

#9515 closed bug

Issue with natural sorting — at Version 1

Reported by: mmadia Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by mmadia)

hrev45285

#!/bin/bash
files="001-.txt \
	001.txt \
	01-.txt \
	01.txt \
	1-.txt \
	1-0-.txt \
	1-0.txt \
	1.txt"
	
for file in $files; do 
	touch $file
done
~/Desktop/test> ls -1
001-.txt
001.txt
01-.txt
01.txt
1-.txt
1-0-.txt
1-0.txt
1.txt
test-files.sh

Change History (2)

by mmadia, 11 years ago

comment:1 by mmadia, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.