Package: moreutils Version: 0.41 Severity: normal Hi,
I observed a couple of times that vidir does not correctly rename directories in some cases. I think it might be related to cases where one directory name is a prefix or another directory: e.g.: | weasel@defiant:~/tmp/test$ mkdir a a.b && ls -l && echo '===' && EDITOR='sed -i -e s/a/A/' vidir -v && echo '===' && ls -l | total 8 | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:40 a/ | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:40 a.b/ | === | './a' => './A' | === | total 8 | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:40 A/ | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:40 a.b/ I would expect a.b to be renamed to A.b. It does work as expected with normal files: | weasel@defiant:~/tmp/test$ touch a a.b && ls -l && echo '===' && EDITOR='sed -i -e s/a/A/' vidir -v && echo '===' && ls -l | total 0 | -rw-r--r-- 1 weasel weasel 0 Jan 3 00:41 a | -rw-r--r-- 1 weasel weasel 0 Jan 3 00:41 a.b | === | './a' => './A' | './a.b' => './A.b' | === | total 0 | -rw-r--r-- 1 weasel weasel 0 Jan 3 00:41 A | -rw-r--r-- 1 weasel weasel 0 Jan 3 00:41 A.b or when there is no prefix issue: | weasel@defiant:~/tmp/test$ mkdir a.a a.b && ls -l && echo '===' && EDITOR='sed -i -e s/a/A/' vidir -v && echo '===' && ls -l | total 8 | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:41 a.a/ | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:41 a.b/ | === | './a.a' => './A.a' | './a.b' => './A.b' | === | total 8 | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:41 A.a/ | drwxr-xr-x 2 weasel weasel 4096 Jan 3 00:41 A.b/ Cheers, weasel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org