Subject: bin/9339: patch uses un-orthodox option parsing
To: None <>
From: Johan Danielsson <>
List: netbsd-bugs
Date: 02/03/2000 03:21:42
>Number:         9339
>Category:       bin
>Synopsis:       patch uses un-orthodox option parsing
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  3 03:20:59 2000
>Originator:     Johan Danielsson
>Release:        2000-02-02
System: NetBSD 1.4Q NetBSD 1.4Q (BLUBB) #187: Tue Feb 1 17:39:58 CET 2000 i386


patch uses it's own option parsing, and it doesn't work as expected,
specifically `patch -fs' doesn't do what you want (it ignores the

This is especially confusing, since the usage strings says:

Usage: patch [options] [origfile [patchfile]] [+ [options] [origfile]]...
       [-ceEflnNRsStuv] [-b backup-ext] [-B backup-prefix] [-d directory]
       [-D symbol] [-Fmax-fuzz] [-o out-file] [-p[strip-count]]
       [-r rej-name] [-V {numbered,existing,simple}]

which indicates that you *can* use `-fs'.