]> git.pld-linux.org Git - packages/mksh.git/blob - mksh-mkshrc_support.patch
- mkshrc_support.patch: add support for system wide mkshrc file, change
[packages/mksh.git] / mksh-mkshrc_support.patch
1 --- main.c~     2011-07-06 20:43:36.679601770 +0100
2 +++ main.c      2011-07-06 20:43:28.039694865 +0100
3 @@ -532,6 +532,7 @@
4         else if (Flag(FTALKING)) {
5                 char *env_file;
6  
7 +               include("/etc/mkshrc", 0, NULL, 1);
8                 /* include $ENV */
9                 env_file = substitute(substitute("${ENV:-" MKSHRC_PATH "}", 0),
10                     DOTILDE);
11 --- check.t~    2011-07-07 09:55:26.802497928 +0100
12 +++ check.t     2011-07-07 09:55:31.859107570 +0100
13 @@ -5908,13 +5908,13 @@
14         Ensure ±U on the command line is honoured
15         (this test may pass falsely depending on CPPFLAGS)
16  stdin:
17 -       export i=0
18 -       code='if [[ $- = *U* ]]; then echo $i on; else echo $i off; fi'
19 -       let i++; "$__progname" -U -c "$code"
20 -       let i++; "$__progname" +U -c "$code"
21 -       let i++; "$__progname" -U -ic "$code"
22 -       let i++; "$__progname" +U -ic "$code"
23 -       echo $((++i)) done
24 +       export iter=0
25 +       code='if [[ $- = *U* ]]; then echo $iter on; else echo $iter off; fi'
26 +       let iter++; "$__progname" -U -c "$code"
27 +       let iter++; "$__progname" +U -c "$code"
28 +       let iter++; "$__progname" -U -ic "$code"
29 +       let iter++; "$__progname" +U -ic "$code"
30 +       echo $((++iter)) done
31  expected-stdout:
32         1 on
33         2 off
This page took 0.077747 seconds and 4 git commands to generate.