summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/sh/eval.c2
-rw-r--r--bin/sh/histedit.c4
-rw-r--r--bin/sh/parser.c2
-rw-r--r--bin/sh/var.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index 499751d..ed6d717 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -1130,7 +1130,7 @@ commandcmd(int argc, char **argv)
return typecmd_impl(2, argv - 1, cmd, path);
}
if (argc != 0)
- error("commandcmd() called while it should not be");
+ error("commandcmd bad call");
/*
* Do nothing successfully if no command was specified;
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index dab69f1..3fc1782 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -297,7 +297,7 @@ histcmd(int argc, char **argv)
laststr = argv[1];
break;
default:
- error("too many args");
+ error("too many arguments");
}
/*
* Turn into event numbers.
@@ -329,7 +329,7 @@ histcmd(int argc, char **argv)
editfile = editfilestr;
if ((efp = fdopen(fd, "w")) == NULL) {
close(fd);
- error("can't allocate stdio buffer for temp");
+ error("Out of space");
}
}
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index f4d38ed..329e2e3 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1738,7 +1738,7 @@ getprompt(void *unused __unused)
char *fmt;
const char *pwd;
int i, trim;
- static char internal_error[] = "<internal prompt error>";
+ static char internal_error[] = "??";
/*
* Select prompt format.
diff --git a/bin/sh/var.c b/bin/sh/var.c
index 27bbf50..f5ea775 100644
--- a/bin/sh/var.c
+++ b/bin/sh/var.c
@@ -826,7 +826,7 @@ setvarcmd(int argc, char **argv)
else if (argc == 3)
setvar(argv[1], argv[2], 0);
else
- error("List assignment not implemented");
+ error("too many arguments");
return 0;
}
OpenPOWER on IntegriCloud