Print version to stdout

This commit is contained in:
Arun Prakash Jana 2021-06-20 10:25:40 +05:30
parent c0ed6d1d04
commit 9f86015c16
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -7938,7 +7938,7 @@ int main(int argc, char *argv[])
g_state.uidgid = 1;
break;
case 'V':
msg(VERSION);
dprintf(STDOUT_FILENO, "%s\n", VERSION);
return EXIT_SUCCESS;
case 'w':
cfg.cursormode = 1;