Quit on EOF from terminal instead of redisplaying the prompt.
This commit is contained in:
parent
27dc3a2b96
commit
e97781bf25
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62294
@ -169,7 +169,7 @@ cmdscanner()
|
||||
el_source(el, NULL);
|
||||
}
|
||||
if ((bp = el_gets(el, &num)) == NULL || num == 0)
|
||||
return;
|
||||
quit(0, NULL);
|
||||
|
||||
len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num;
|
||||
memcpy(cmdline, bp, len);
|
||||
|
Loading…
Reference in New Issue
Block a user