Subject: bin/9339: patch uses un-orthodox option parsing
To: None <gnats-bugs@gnats.netbsd.org>
From: Johan Danielsson <joda@pdc.kth.se>
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
>Last-Modified:
>Originator:     Johan Danielsson
>Organization:
>Release:        2000-02-02
>Environment:
System: NetBSD blubb.pdc.kth.se 1.4Q NetBSD 1.4Q (BLUBB) #187: Tue Feb 1 17:39:58 CET 2000 joda@blubb.pdc.kth.se:/usr/misc/src/netbsd/anoncvs/src/sys/arch/i386/compile/BLUBB i386


>Description:

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
`s').

This is especially confusing, since the usage strings says:

Usage: patch [options] [origfile [patchfile]] [+ [options] [origfile]]...
Options:
       [-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'.

>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: