ed: Write "?\n" and explanatory messages to stdout
This is the behavior specified by POSIX.
This commit is contained in:
parent
44ccadcde3
commit
1ff2a54e8f
6
ed.c
6
ed.c
@ -85,10 +85,10 @@ error(char *msg)
|
||||
{
|
||||
exstatus = 1;
|
||||
lasterr = msg;
|
||||
fputs("?\n", stderr);
|
||||
puts("?");
|
||||
|
||||
if (optverbose)
|
||||
fprintf(stderr, "%s\n", msg);
|
||||
puts(msg);
|
||||
if (!newcmd)
|
||||
undo();
|
||||
|
||||
@ -703,7 +703,7 @@ static void
|
||||
dohelp(void)
|
||||
{
|
||||
if (lasterr)
|
||||
fprintf(stderr, "%s\n", lasterr);
|
||||
puts(lasterr);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user