1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-27 22:40:20 +02:00

50101: sysread -o with param adjusted to match documentation

This commit is contained in:
Bart Schaefer 2022-04-28 17:08:10 -07:00
parent 0ccc3c1494
commit 007c7df74a
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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;