- rel back to 0.1, https://bugs.launchpad.net/mksh/+bug/1179287
[packages/mksh.git] / mksh-mkshrc_support.patch
1 --- main.c~     2011-07-07 18:15:26.961632040 +0100
2 +++ main.c      2011-07-07 18:15:50.664694256 +0100
3 @@ -532,10 +532,14 @@
4                 char *env_file;
5  
6                 /* include $ENV */
7 -               env_file = substitute(substitute("${ENV:-" MKSHRC_PATH "}", 0),
8 -                   DOTILDE);
9 +                env_file = substitute(substitute("${ENV}", 0), DOTILDE);
10                 if (*env_file != '\0')
11                         include(env_file, 0, NULL, true);
12 +                else { 
13 +                       env_file = substitute(MKSHRC_PATH, DOTILDE);
14 +                       include("/etc/mkshrc", 0, NULL, true);
15 +                       include(env_file, 0, NULL, true);
16 +                        }
17         }
18  
19         if (restricted) {
This page took 0.114148 seconds and 3 git commands to generate.