rsync sort list

catam gogu at l.route666.net
Sun Feb 4 16:47:57 GMT 2007


Hi
While I was working on a script that uses rsync file list found this:
(which I guess is due adding / for dirs in f_name_cmp)

==2 dirs:
# mkdir a a-c
# rsync -a .
drwxr-xr-x          96 2007/02/04 18:20:35 .
drwxr-xr-x          48 2007/02/04 18:20:35 a-c
drwxr-xr-x          48 2007/02/04 18:20:35 a

==2 dirs again:
#mkdir a a1
# rsync -a .
drwxr-xr-x          96 2007/02/04 18:20:11 .
drwxr-xr-x          48 2007/02/04 18:20:11 a
drwxr-xr-x          48 2007/02/04 18:20:11 a1


==2 files:
# touch a a-c
# rsync -a .
drwxr-xr-x          96 2007/02/04 18:21:07 .
-rw-r--r--           0 2007/02/04 18:21:07 a
-rw-r--r--           0 2007/02/04 18:21:07 a-c

==2 files again :
# touch a a1
# rsync -a .
drwxr-xr-x          96 2007/02/04 18:21:07 .
-rw-r--r--           0 2007/02/04 18:21:07 a
-rw-r--r--           0 2007/02/04 18:21:07 a1


shouldnt dir a came before a-c ?

catam


More information about the rsync mailing list