FreeBSD Bugzilla – Attachment 215298 Details for
Bug 247004
awk(1): -V option is not supported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for awk
awk_patch (text/plain), 854 bytes, created by
Akos Somfai
on 2020-06-06 17:19:33 UTC
(
hide
)
Description:
Proposed patch for awk
Filename:
MIME Type:
Creator:
Akos Somfai
Created:
2020-06-06 17:19:33 UTC
Size:
854 bytes
patch
obsolete
>Index: contrib/one-true-awk/main.c >=================================================================== >--- contrib/one-true-awk/main.c (revision 361870) >+++ contrib/one-true-awk/main.c (working copy) >@@ -67,7 +67,7 @@ > cmdname = argv[0]; > if (argc == 1) { > fprintf(stderr, >- "usage: %s [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]\n", >+ "usage: %s [-V] [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]\n", > cmdname); > exit(1); > } >@@ -79,7 +79,8 @@ > yyin = NULL; > symtab = makesymtab(NSYMTAB/NSYMTAB); > while (argc > 1 && argv[1][0] == '-' && argv[1][1] != '\0') { >- if (strcmp(argv[1],"-version") == 0 || strcmp(argv[1],"--version") == 0) { >+ if (strcmp(argv[1],"-version") == 0 || strcmp(argv[1],"--version") == 0 || >+ strcmp(argv[1],"-V") == 0) { > printf("awk %s\n", version); > exit(0); > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247004
: 215298