From 007c7df74a3cf80a3ac3fd07e588be3848193a4e Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 28 Apr 2022 17:08:10 -0700 Subject: 50101: sysread -o with param adjusted to match documentation --- ChangeLog | 4 +++- Src/Modules/system.c | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b30b646c1..f5301882a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,9 @@ -2022-04-28 Bart Schaefer +2022-04-28 Bart Schaefer * 50126: Etc/BUGS, Src/exec.c: Fix multios in current-shell "exec" + * 50101: Src/Modules/system.c: sysread -o with param matches doc + 2022-04-26 dana * unposted: Completion/Unix/Command/_getopt: Fix util-linux diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 71745548f..ea11ef037 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -83,10 +83,6 @@ bin_sysread(char *nam, char **args, Options ops, UNUSED(int func)) /* -o: output file descriptor, else store in REPLY */ if (OPT_ISSET(ops, 'o')) { - if (*args) { - zwarnnam(nam, "no argument allowed with -o"); - return 1; - } outfd = getposint(OPT_ARG(ops, 'o'), nam); if (outfd < 0) return 1; -- cgit 1.4.1