]> git.pld-linux.org Git - packages/mksh.git/blob - mksh-mkshrc_support.patch
rel 3; drop builtin cat and sleep
[packages/mksh.git] / mksh-mkshrc_support.patch
1 diff -urNp -x '*.orig' mksh-59c.org/main.c mksh-59c/main.c
2 --- mksh-59c.org/main.c 2020-10-01 22:29:21.000000000 +0200
3 +++ mksh-59c/main.c     2021-03-20 19:54:06.508364229 +0100
4 @@ -695,9 +695,14 @@ main_init(int argc, const char *argv[],
5                 if (Flag(FLOGIN))
6                         include(substitute("$HOME/.profile", 0), 0, NULL, true);
7                 if (Flag(FTALKING)) {
8 -                       cp = substitute("${ENV:-" MKSHRC_PATH "}", DOTILDE);
9 +                       cp = substitute("${ENV}", DOTILDE);
10                         if (cp[0] != '\0')
11                                 include(cp, 0, NULL, true);
12 +                       else {
13 +                               cp = substitute(MKSHRC_PATH, DOTILDE);
14 +                               include("/etc/mkshrc", 0, NULL, true);
15 +                               include(cp, 0, NULL, true);
16 +                       }
17                 }
18         }
19         if (restricted_shell) {
This page took 0.08841 seconds and 4 git commands to generate.