TerminalComponent.processLine() treats _processCommand as the user-command dispatcher:
if(!this.isCoreCommand(cmd)){if(this._processCommand){stdout=this.coreCommand(argv,argc);}else{stdout=cmd+": command not found\n";}}
_processCommand is hardcoded false, so the arm is dead. If it is ever flipped on, coreCommand does _coreCmds[cmd](...) and throwsTypeError: this._coreCmds[cmd] is not a function for any name that is not clear, instead of printing "command not found".
Expected: unknown names still print "command not found" (or dispatch a real user-command table). Characterization: terminal.leftovers.spec.ts.
`TerminalComponent.processLine()` treats `_processCommand` as the user-command dispatcher:
```ts
if (!this.isCoreCommand(cmd)) {
if (this._processCommand) {
stdout = this.coreCommand(argv, argc);
} else {
stdout = cmd + ": command not found\n";
}
}
```
`_processCommand` is hardcoded `false`, so the arm is dead. If it is ever flipped on, `coreCommand` does `_coreCmds[cmd](...)` and **throws** `TypeError: this._coreCmds[cmd] is not a function` for any name that is not `clear`, instead of printing "command not found".
Expected: unknown names still print "command not found" (or dispatch a real user-command table). Characterization: `terminal.leftovers.spec.ts`.
Resolved in spikersoft-angular PR #818 (merged to master). Unknown names no longer throw TypeError when _processCommand is on; they print command-not-found. Closing.
Resolved in spikersoft-angular [PR #818](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/818) (merged to `master`). Unknown names no longer throw TypeError when `_processCommand` is on; they print command-not-found. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
TerminalComponent.processLine()treats_processCommandas the user-command dispatcher:_processCommandis hardcodedfalse, so the arm is dead. If it is ever flipped on,coreCommanddoes_coreCmds[cmd](...)and throwsTypeError: this._coreCmds[cmd] is not a functionfor any name that is notclear, instead of printing "command not found".Expected: unknown names still print "command not found" (or dispatch a real user-command table). Characterization:
terminal.leftovers.spec.ts.Resolved in spikersoft-angular PR #818 (merged to
master). Unknown names no longer throw TypeError when_processCommandis on; they print command-not-found. Closing.