Bug#613605: patch -b and -V options, overwrites file.orig despite manpage description

2022-01-13 Thread Bruce Momjian
I think I understand the manual text now. I read it as create numbered files only if the backup file exists, but I now see it can be read as create numbered files only if other numbered files already exist. I think "have them" is unclear. Maybe the text should be clarified to: Make

Bug#613605: patch -b and -V options, overwrites file.orig despite manpage description

2022-01-12 Thread Bruce Momjian
Sorry, but I disagree and think this is a bug in Debian 11, GNU patch 2.7.6. -b forces a backup file, and the manual says of "-V existing": Make numbered backups of files that already have them, otherwise simple backups. This is the default. This example shows that the first patch

Bug#613605: patch -b and -V options, overwrites file.orig despite manpage description (additional info)

2019-08-22 Thread Jesse Smith
I looked at the documentation and the examples provided here and they are working as documented. I don't think there is a bug here. Now, in theory, it might be nice to have a flag which prevents old .orig files from being overwritten. I can see how that would be beneficial. But the examples

Bug#613605: patch -b and -V options, overwrites file.orig despite manpage description (additional info)

2011-02-17 Thread songbird
simple example: == me@ant(15)~/tmp$ cat a a me@ant(16)~/tmp$ cat b a\nb me@ant(17)~/tmp$ echo a b me@ant(18)~/tmp$ echo b b me@ant(19)~/tmp$ cat a a me@ant(20)~/tmp$ cat b a b me@ant(21)~/tmp$ diff -C 3 a b *** a 2011-02-17 02:27:51.0 -0500 --- b 2011-02-17

Bug#613605: patch -b and -V options, overwrites file.orig despite manpage description

2011-02-15 Thread ant
Package: patch Version: 2.6-3 Severity: normal hello, the following description in the manpage says (below), but when using patch -b and not specifying -V, it clobbers the .orig file instead of using the numbered or t method as explained as the default. from the description i was expecting a