Skip to content

Commit 089741c

Browse files
committed
WL#9874: Deprecate and remove the replace utility
This patch adds a deprecation warning when starting the 'replace' utility. This is the 5.7 version of the WL.
1 parent 2b5d760 commit 089741c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extra/replace.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or
55
modify it under the terms of the GNU General Public License
@@ -107,6 +107,10 @@ int main(int argc, char *argv[])
107107
char word_end_chars[256],*pos;
108108
POINTER_ARRAY from,to;
109109
REPLACE *replace;
110+
111+
fprintf(stderr, "Warning: replace is deprecated and will be removed in a "
112+
"future version.\n");
113+
110114
MY_INIT(argv[0]);
111115

112116
if (static_get_options(&argc,&argv))

0 commit comments

Comments
 (0)