Quit on EOF from terminal instead of redisplaying the prompt.

This commit is contained in:
Matthew Hunt 2000-06-30 20:05:21 +00:00
parent 27dc3a2b96
commit e97781bf25
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62294

View File

@ -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);