Ticket #3684: 3684-use-fulle-paths-for-bash-and-dash-user-init_file.patch
File 3684-use-fulle-paths-for-bash-and-dash-user-init_file.patch, 678 bytes (added by alllexx88, 8 years ago) |
---|
-
src/subshell/common.c
a b 279 279 if (!exist_file (init_file)) 280 280 { 281 281 g_free (init_file); 282 init_file = g_strdup (".bashrc");282 init_file = g_strdup_printf ("%s/.bashrc", g_getenv ("HOME")); 283 283 } 284 284 285 285 /* Make MC's special commands not show up in bash's history and also suppress … … 310 310 if (!exist_file (init_file)) 311 311 { 312 312 g_free (init_file); 313 init_file = g_strdup (".profile");313 init_file = g_strdup_printf ("%s/.profile", g_getenv ("HOME")); 314 314 } 315 315 316 316 /* Put init file to ENV variable used by ash */