Skip to content

Commit 47b34da

Browse files
authored
patch: delete dead -x option (#699)
* The -x (aka --debug) option exists in the GNU version of patch, but the perl version never did anything with -x * Mentioning -x in the pod manual makes the useful information more difficult to find * This option is not covered by the standard so removing it is not a compatibility issue [1] * Debugging the perl version can be as simple as setting a breakpoint in Patch::apply() or Patch::Ed::apply() 1. https://pubs.opengroup.org/onlinepubs/007904975/utilities/patch.html
1 parent abcf456 commit 47b34da

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

bin/patch

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (@ARGV) {
5252
directory|d=s normal|n unified|u
5353
ifdef|D=s forward|N version|v
5454
ed|e output|o=s version-control|V=s
55-
remove-empty-files|E strip|p=i debug|x=i
55+
remove-empty-files|E strip|p=i
5656
/;
5757
5858
# Each patch may have its own set of options. These are separated by
@@ -1476,13 +1476,6 @@ Always make simple backups.
14761476
14771477
=back
14781478
1479-
=item -xnumber or --debug number
1480-
1481-
sets internal debugging flags,
1482-
and is of no interest to I<patch> patchers [see L<"note 8">].
1483-
1484-
=back
1485-
14861479
=head1 ENVIRONMENT
14871480
14881481
B<SIMPLE_BACKUP_SUFFIX>
@@ -1621,10 +1614,6 @@ file is handy, GNU patch will attempt to get or check out the file.
16211614
GNU patch requires a space between the B<-D> and the argument. This has been
16221615
made optional.
16231616
1624-
=head2 note 8
1625-
1626-
There are currently no debugging flags to go along with B<-x>.
1627-
16281617
=head1 AUTHOR
16291618
16301619
The Perl implementation of I<patch> was written by Tim Gim Yee,

0 commit comments

Comments
 (0)