summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Modules/system.c4
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  <schaefer@Macadamia>
+2022-04-28  Bart Schaefer  <schaefer@zsh.org>
 
 	* 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  <dana@dana.is>
 
 	* 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;