Package: moreutils
Version: 0.49
Severity: grave

vidir will abort, discarding the edited name list, on a parsing error:

michael@terra:~/x$ mkdir vidir-test
michael@terra:~/x$ cd vidir-test/
michael@terra:~/x/vidir-test$ ls
michael@terra:~/x/vidir-test$ touch a b c d e
michael@terra:~/x/vidir-test$ vidir .
[add a suffix like ".foo" to all filenames]
[delete the number 2 in front of b.foo]
[save and exit]
/usr/bin/vidir: unable to parse line "  ./b.foo", aborting

Only file "a" will have been renamed, and the temporary name list that
had been edited will have been deleted.

vidir should either reopen the editor on error (maybe with comments at
the top and above the bad lines) or save a copy of the edited list in
the working directory.

I have occasionally encountered this problem after spending a long time
editing a large directory, and have had to redo my work because of it.
I'm therefore marking the bug 'grave', although I'm not sure whether
the severity is meant to cover this kind of metadata loss.

- Michael


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages moreutils depends on:
ii  libc6            2.17-7
ii  libipc-run-perl  0.92-1
ii  perl             5.14.2-21

moreutils recommends no packages.

Versions of packages moreutils suggests:
pn  libtime-duration-perl  <none>
ii  libtimedate-perl       1.2000-1

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to