9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 68dadd2a0606194f5f01750ef1526afc46b4d4c3
parent 88d0d87feac6b240025eb76e656a6305f607a029
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Fri, 11 Nov 2022 18:09:39 +0100

dlang: rename echo/cat to write/read

Diffstat:
Msrc/os9/dlang.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/os9/dlang.c b/src/os9/dlang.c @@ -83,7 +83,7 @@ do_help(const struct cmd *cmd, struct args *args) } static int -do_cat(const struct cmd *cmd, struct args *args) +do_read(const struct cmd *cmd, struct args *args) { int n, ch; Chan *c; @@ -145,7 +145,7 @@ err: } static int -do_echo(const struct cmd *cmd, struct args *args) +do_write(const struct cmd *cmd, struct args *args) { int i, len, offset, n; Chan *c; @@ -348,15 +348,15 @@ static const struct cmd cmds[] = { .helpmsg = "List content of a directory: ls path", }, { - .name = "cat", - .eval = do_cat, + .name = "read", + .eval = do_read, .min = 2, .max = 2, .helpmsg = "Read content from a file: cat path", }, { - .name = "echo", - .eval = do_echo, + .name = "write", + .eval = do_write, .min = 3, .max = NR_ARGC_MAX, .helpmsg = "Write content to a file: echo path string ...",