ref: 6ddf109203a972e4eb7cfe57708bef67b21cb6a0
parent: 7419d3ed430daac37d94c13ae5c5fc5859f66fd8
author: Michael Forney <[email protected]>
date: Tue Feb 22 03:03:42 EST 2022
cons: skip leading space in 'unknown command' message
--- a/cons.c
+++ b/cons.c
@@ -304,8 +304,8 @@
break;
}
if(c->name == nil){
- fprint(fd, "unknown command '");
- for(i = 0; i < nf; i++)
+ fprint(fd, "unknown command '%s", f[0]);
+ for(i = 1; i < nf; i++)
fprint(fd, " %s", f[i]);
fprint(fd, "'\n");
}