Remove unused variable and fix command prompt display issue #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit ("Remove unused variable") removes an unused variable in
console.c
.prompt_flag
inconsole.c
is specified as static and the only usage is the if statement at line 583 and the only assignment to it is at line 588 which assigns 1 toprompt_flag
. Since no other code can modify this variable, it can be removed.Commit ("Fix command prompt showing when using file input") fixes command prompt display issue when using file as input. Commit b13335b ("Introduce eventmux callback function for linenoise") removes
set_echo(0)
wheninfd
is not the standard input, which will show command prompt while executing command from input files. Adding it back fixes the issue.