From db8ec59ac422b6d81c8ace0519388521f6ebdc6d Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 9 Mar 2018 11:48:09 -0600 Subject: [PATCH] Change read to use -s/--silent and -S/--shell Closes #4490 --- src/builtin_read.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/builtin_read.cpp b/src/builtin_read.cpp index 13d85fad1..3d80da1a0 100644 --- a/src/builtin_read.cpp +++ b/src/builtin_read.cpp @@ -62,10 +62,10 @@ static const struct woption long_options[] = {{L"export", no_argument, NULL, 'x' {L"right-prompt", required_argument, NULL, 'R'}, {L"command", required_argument, NULL, 'c'}, {L"mode-name", required_argument, NULL, 'm'}, - {L"silent", no_argument, NULL, 'i'}, + {L"silent", no_argument, NULL, 's'}, {L"nchars", required_argument, NULL, 'n'}, {L"delimiter", required_argument, NULL, 'd'}, - {L"shell", no_argument, NULL, 's'}, + {L"shell", no_argument, NULL, 'S'}, {L"array", no_argument, NULL, 'a'}, {L"null", no_argument, NULL, 'z'}, {L"help", no_argument, NULL, 'h'}, @@ -148,15 +148,15 @@ static int parse_cmd_opts(read_cmd_opts_t &opts, int *optind, //!OCLINT(high nc break; } case 's': { - opts.shell = true; + opts.silent = true; break; } case 'a': { opts.array = true; break; } - case L'i': { - opts.silent = true; + case L'S': { + opts.shell = true; break; } case L'z': {