I'm just adding this more complex example to highlight
how mmv is affected, not just by the number of files it is
operating on directly, but by the number of files in the
current directory.

# BEGIN SCRIPT

mkdir -p mmv-bug.d/mmv-bug.d
cd mmv-bug.d/mmv-bug.d
find -maxdepth 1 | grep -c .
seq 1 2 | sed 's/.*/A-Random-File-&.touch/' | xargs touch
mmv -n "*touch" "#1touche"
seq -w 1 10 | sed 's/.*/Empty-Dir-&.d/' | xargs mkdir
find -maxdepth 1 | grep -c .
mmv -n "*touch" "#1touche"
cd ..
find | grep -c .
seq 1 2 | sed 's/.*/A-Random-File-&.touch/' | xargs touch
mmv -n "*touch" "#1touche"

# END SCRIPT

Running this should produce the following output:

1
A-Random-File-1.touch -> A-Random-File-1.touche
A-Random-File-2.touch -> A-Random-File-2.touche
13
realloc(): invalid pointer
Aborted
14
A-Random-File-1.touch -> A-Random-File-1.touche
A-Random-File-2.touch -> A-Random-File-2.touche

--
Sent via Swisscows.email.
My mails are safe. And yours?

Reply via email to