"patch --posix " broken in warty?
Brian Craft
bcboy at thecraftstudio.com
Fri Apr 22 19:26:31 UTC 2005
Anyone else having problems with the --posix flag? cvs generates diffs
with an "Index:" line specifying the path to the file, and just the
filename (no path) on the "diff" line.
According to the man page, "--posix" should allow patch to read these:
o If there is an Index: line in the leading garbage and if either
the old and new names are both absent or if patch is conforming
to POSIX, patch takes the name in the Index: line.
However, later in the same man page it say this, which seems to conflict:
--posix
Conform more strictly to the POSIX standard, as follows.
o Take the first existing file from the list (old, new, index) when intuiting file names from diff headers.
o Do not remove files that are empty after patching.
o Do not ask whether to get files from RCS, ClearCase, Perforce, or SCCS.
o Require that all options precede the files in the command line.
o Do not backup files when there is a mismatch.
The first description seems to say it checks in the order (index, old, new),
while the second description says it checks (old, new, index). In any case,
it barfs on some cvs diffs.
b.c.
More information about the ubuntu-users
mailing list