bug#31038: mv copies in ls -r order

2018-04-03 Thread 積丹尼 Dan Jacobson
OK. Please on (info "(coreutils) cp invocation") at ‘-v’ ‘--verbose’ Print the name of each file before copying it. add: "(Note this reveals internal order of operations, often in ls -U order, thus occasionally appearing to be in ls, ls -t, ls -r, ls -rt etc. order.)" (I mean on the same pag

bug#31038: mv copies in ls -r order

2018-04-03 Thread Eric Blake
On 04/03/2018 09:37 AM, 積丹尼 Dan Jacobson wrote: > OK maybe I was just looking at the latter half of > > $ sh O > /tmp > created directory '/var/tmp/y' > copied 'x/1' -> '/var/tmp/y/1' > copied 'x/2' -> '/var/tmp/y/2' > copied 'x/3' -> '/var/tmp/y/3' > copied 'x/4' -> '/var/tmp/y/4' > copied 'x/5'

bug#31038: mv copies in ls -r order

2018-04-03 Thread 積丹尼 Dan Jacobson
OK maybe I was just looking at the latter half of $ sh O /tmp created directory '/var/tmp/y' copied 'x/1' -> '/var/tmp/y/1' copied 'x/2' -> '/var/tmp/y/2' copied 'x/3' -> '/var/tmp/y/3' copied 'x/4' -> '/var/tmp/y/4' copied 'x/5' -> '/var/tmp/y/5' copied 'x/6' -> '/var/tmp/y/6' copied 'x/7' -> '/v

bug#31038: mv copies in ls -r order

2018-04-03 Thread Eric Blake
tag 31038 notabug thanks On 04/03/2018 02:52 AM, 積丹尼 Dan Jacobson wrote: > $ mv -v dir1/* dir2 > reveals that mv works backwards, > copying in ls -r order. Not quite true. It copies the arguments in the order given on the command line (the * glob expands to a sorted list according to the current

bug#31038: mv copies in ls -r order

2018-04-03 Thread 積丹尼 Dan Jacobson
$ mv -v dir1/* dir2 reveals that mv works backwards, copying in ls -r order. Well OK, but why is that order better than the order of the arguments it was given?