aboutsummaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-03-09 12:54:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-03-09 12:54:05 +0200
commit6514b3a2f5ed8c593d7d49526a27122989e673d0 (patch)
treeee1d50a6b52e633e1ba7617aeee4c7b667f3534a /command.c
parente26cf22ad5c7d772ecc0c195bfbc612f1bb1f5b6 (diff)
downloadegawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.tar.gz
egawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.tar.bz2
egawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.zip
First round of message improvements.
Diffstat (limited to 'command.c')
-rw-r--r--command.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/command.c b/command.c
index eb46ad4e..7d859694 100644
--- a/command.c
+++ b/command.c
@@ -1719,7 +1719,7 @@ yyreduce:
if (input_from_tty) {
dbg_prompt = eval_prompt;
fprintf(out_fp,
- _("Type (g)awk statement(s). End with the command \"end\"\n"));
+ _("Type (g)awk statement(s). End with the command `end'\n"));
rl_inhibit_completion = 1;
}
cmd_idx = -1;
@@ -1805,7 +1805,7 @@ yyreduce:
{
int idx = find_argument(yyvsp[0]);
if (idx < 0)
- yyerror(_("info: invalid option - \"%s\""), yyvsp[0]->a_string);
+ yyerror(_("info: invalid option - `%s'"), yyvsp[0]->a_string);
else {
efree(yyvsp[0]->a_string);
yyvsp[0]->a_string = NULL;
@@ -1856,7 +1856,7 @@ yyreduce:
#line 321 "command.y"
{
if (in_cmd_src(yyvsp[0]->a_string))
- yyerror(_("source \"%s\": already sourced."), yyvsp[0]->a_string);
+ yyerror(_("source: `%s': already sourced."), yyvsp[0]->a_string);
}
#line 1862 "command.c"
break;
@@ -1865,7 +1865,7 @@ yyreduce:
#line 326 "command.y"
{
if (! input_from_tty)
- yyerror(_("save \"%s\": command not permitted."), yyvsp[0]->a_string);
+ yyerror(_("save: `%s': command not permitted."), yyvsp[0]->a_string);
}
#line 1871 "command.c"
break;
@@ -1882,7 +1882,7 @@ yyreduce:
if (dbg_errcount != 0)
;
else if (in_commands)
- yyerror(_("Can't use command `commands' for breakpoint/watchpoint commands"));
+ yyerror(_("cannot use command `commands' for breakpoint/watchpoint commands"));
else if (yyvsp[0] == NULL && ! (type = has_break_or_watch_point(&num, true)))
yyerror(_("no breakpoint/watchpoint has been set yet"));
else if (yyvsp[0] != NULL && ! (type = has_break_or_watch_point(&num, false)))
@@ -1893,7 +1893,7 @@ yyreduce:
dbg_prompt = commands_prompt;
fprintf(out_fp, _("Type commands for when %s %d is hit, one per line.\n"),
(type == D_break) ? "breakpoint" : "watchpoint", num);
- fprintf(out_fp, _("End with the command \"end\"\n"));
+ fprintf(out_fp, _("End with the command `end'\n"));
}
}
}
@@ -1928,7 +1928,7 @@ yyreduce:
{
int idx = find_argument(yyvsp[0]);
if (idx < 0)
- yyerror(_("trace: invalid option - \"%s\""), yyvsp[0]->a_string);
+ yyerror(_("trace: invalid option - `%s'"), yyvsp[0]->a_string);
else {
efree(yyvsp[0]->a_string);
yyvsp[0]->a_string = NULL;
@@ -2037,7 +2037,7 @@ yyreduce:
#line 459 "command.y"
{
if (find_option(yyvsp[0]->a_string) < 0)
- yyerror(_("option: invalid parameter - \"%s\""), yyvsp[0]->a_string);
+ yyerror(_("option: invalid parameter - `%s'"), yyvsp[0]->a_string);
}
#line 2043 "command.c"
break;
@@ -2046,7 +2046,7 @@ yyreduce:
#line 464 "command.y"
{
if (find_option(yyvsp[-2]->a_string) < 0)
- yyerror(_("option: invalid parameter - \"%s\""), yyvsp[-2]->a_string);
+ yyerror(_("option: invalid parameter - `%s'"), yyvsp[-2]->a_string);
}
#line 2052 "command.c"
break;
@@ -2057,7 +2057,7 @@ yyreduce:
NODE *n;
n = lookup(yyvsp[0]->a_string);
if (n == NULL || n->type != Node_func)
- yyerror(_("no such function - \"%s\""), yyvsp[0]->a_string);
+ yyerror(_("no such function - `%s'"), yyvsp[0]->a_string);
else {
yyvsp[0]->type = D_func;
efree(yyvsp[0]->a_string);
@@ -2115,7 +2115,7 @@ yyreduce:
{
int idx = find_argument(yyvsp[-1]);
if (idx < 0)
- yyerror(_("enable: invalid option - \"%s\""), yyvsp[-1]->a_string);
+ yyerror(_("enable: invalid option - `%s'"), yyvsp[-1]->a_string);
else {
efree(yyvsp[-1]->a_string);
yyvsp[-1]->a_string = NULL;
@@ -2906,7 +2906,7 @@ again:
/* force a quit, and let do_quit (in debug.c) exit */
if (! seen_eof) {
if (errno != 0) {
- fprintf(stderr, _("can't read command (%s)\n"), strerror(errno));
+ fprintf(stderr, _("cannot read command: %s\n"), strerror(errno));
exit_val = EXIT_FAILURE;
} /* else
exit_val = EXIT_SUCCESS; */
@@ -2920,7 +2920,7 @@ again:
return '\n'; /* end command 'quit' */
}
if (errno != 0)
- d_error(_("can't read command (%s)"), strerror(errno));
+ d_error(_("cannot read command: %s"), strerror(errno));
if (pop_cmd_src() == 0)
goto again;
exit(EXIT_FATAL); /* shouldn't happen */
@@ -3007,7 +3007,7 @@ again:
}
return cmdtab[cmd_idx].class;
} else {
- yyerror(_("unknown command - \"%.*s\", try help"), toklen, tokstart);
+ yyerror(_("unknown command - `%.*s', try help"), toklen, tokstart);
return '\n';
}
}