From: "Alfred M. Szmidt" <ams@gnu.org>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: 66211@debbugs.gnu.org
Subject: bug#66211: 30.0.50; C-x v v in vc-diff does not work with lesser versionf of patch
Date: Tue, 26 Sep 2023 08:43:32 -0400 [thread overview]
Message-ID: <E1ql7PY-0001Ku-Re@fencepost.gnu.org> (raw)
In-Reply-To: <3e17d007-0c22-918d-2030-89b02b081d44@gutov.dev> (message from Dmitry Gutov on Tue, 26 Sep 2023 15:38:52 +0300)
> The C-x v v command in a*vc-diff* buffer does not work if you have a
> lesser version of patch, e.g., the one on OpenBSD:
>
> user-error: Patch failed: patch: unknown option -- no-backup-if-mismatch
> usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]
> [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]
> [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]
> [--posix] [origfile [patchfile]]
> patch <patchfile
Thanks for the report.
Any idea how to implement the same thing using your version of 'patch'?
Maybe just pass --posix for both GNU patch and other patch?
From the GNU patch manual:
The --no-backup-if-mismatch option causes patch to not create backup
files, even for mismatched patches; this is the default when
conforming to POSIX.
Scoundering the patch(1) man page:
-b, --backup
Save a backup copy of the file before it is modified. By default
the original file is saved with a backup extension of ".orig"
unless the file already has a numbered backup, in which case a
numbered backup is made. This is equivalent to specifying "-V
existing". This option is currently the default, unless --posix
is specified.
And looking further, --posix:
--posix
Enables strict IEEE Std 1003.1-2008 ("POSIX.1") conformance,
specifically:
1. Backup files are not created unless the -b option is
specified.
2. If unspecified, the file name used is the first of the old,
new and index files that exists.
next prev parent reply other threads:[~2023-09-26 12:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 12:17 bug#66211: 30.0.50; C-x v v in vc-diff does not work with lesser versionf of patch Alfred M. Szmidt
2023-09-26 12:38 ` Dmitry Gutov
2023-09-26 12:43 ` Alfred M. Szmidt [this message]
2023-09-26 13:38 ` Dmitry Gutov
2023-09-26 15:08 ` Alfred M. Szmidt
2023-09-26 16:30 ` Dmitry Gutov
2023-09-26 16:51 ` Alfred M. Szmidt
2023-10-07 22:33 ` Dmitry Gutov
2023-10-08 5:01 ` Eli Zaretskii
2023-10-14 17:10 ` Dmitry Gutov
2023-09-29 7:05 ` Eli Zaretskii
2023-09-29 10:22 ` Dmitry Gutov
2023-09-29 15:22 ` Eli Zaretskii
2023-09-29 17:27 ` Dmitry Gutov
2023-09-29 17:40 ` Eli Zaretskii
2023-09-29 18:11 ` Dmitry Gutov
2023-09-29 18:36 ` Alfred M. Szmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1ql7PY-0001Ku-Re@fencepost.gnu.org \
--to=ams@gnu.org \
--cc=66211@debbugs.gnu.org \
--cc=dmitry@gutov.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).