aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 48fa56eb7..9e06a3bff 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -743,7 +743,7 @@ static void print_tree(struct op *head)
743static void prs(const char *s) 743static void prs(const char *s)
744{ 744{
745 if (*s) 745 if (*s)
746 write(2, s, strlen(s)); 746 write(STDERR_FILENO, s, strlen(s));
747} 747}
748 748
749static void prn(unsigned u) 749static void prn(unsigned u)
@@ -3384,7 +3384,7 @@ static int doread(struct op *t ATTRIBUTE_UNUSED, char **args)
3384 } 3384 }
3385 for (wp = args + 1; *wp; wp++) { 3385 for (wp = args + 1; *wp; wp++) {
3386 for (cp = global_env.linep; !nl && cp < elinep - 1; cp++) { 3386 for (cp = global_env.linep; !nl && cp < elinep - 1; cp++) {
3387 nb = nonblock_safe_read(0, cp, sizeof(*cp)); 3387 nb = nonblock_safe_read(STDIN_FILENO, cp, sizeof(*cp));
3388 if (nb != sizeof(*cp)) 3388 if (nb != sizeof(*cp))
3389 break; 3389 break;
3390 nl = (*cp == '\n'); 3390 nl = (*cp == '\n');
@@ -4522,7 +4522,7 @@ static int readc(void)
4522static void ioecho(char c) 4522static void ioecho(char c)
4523{ 4523{
4524 if (FLAG['v']) 4524 if (FLAG['v'])
4525 write(2, &c, sizeof c); 4525 write(STDERR_FILENO, &c, sizeof c);
4526} 4526}
4527 4527
4528static void pushio(struct ioarg *argp, int (*fn) (struct ioarg *)) 4528static void pushio(struct ioarg *argp, int (*fn) (struct ioarg *))