comparison src/os_unix.c @ 28435:0533e7466ef0 v8.2.4742

patch 8.2.4742: there is no way to start logging very early in startup Commit: https://github.com/vim/vim/commit/c9a9a0ac1ec3b985d38c01ddf9f0ba2f15386f34 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 12 15:09:23 2022 +0100 patch 8.2.4742: there is no way to start logging very early in startup Problem: There is no way to start logging very early in startup. Solution: Add the --log argument. Include the date in the start message in the log file. Avoid a duplicate message when forking. Log an executed shell command.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 16:15:03 +0200
parents f70015784777
children d770568e6c98
comparison
equal deleted inserted replaced
28434:dfef2e002d5b 28435:0533e7466ef0
5478 int 5478 int
5479 mch_call_shell( 5479 mch_call_shell(
5480 char_u *cmd, 5480 char_u *cmd,
5481 int options) // SHELL_*, see vim.h 5481 int options) // SHELL_*, see vim.h
5482 { 5482 {
5483 #ifdef FEAT_JOB_CHANNEL
5484 ch_log(NULL, "executing shell command: %s", cmd);
5485 #endif
5483 #if defined(FEAT_GUI) && defined(FEAT_TERMINAL) 5486 #if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
5484 if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL) 5487 if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL)
5485 return mch_call_shell_terminal(cmd, options); 5488 return mch_call_shell_terminal(cmd, options);
5486 #endif 5489 #endif
5487 #ifdef USE_SYSTEM 5490 #ifdef USE_SYSTEM