mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Run command-not-found in sh only if errno is ENOENT.
This commit is contained in:
parent
2697711dc1
commit
d7e1c926a2
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ readcmd:
|
|||
}
|
||||
|
||||
execvp(argv[0], argv);
|
||||
if ( interactive )
|
||||
if ( interactive && errno == ENOENT )
|
||||
{
|
||||
int errno_saved = errno;
|
||||
execlp("command-not-found", "command-not-found", argv[0], NULL);
|
||||
|
|
Loading…
Reference in a new issue