]> git.pld-linux.org Git - packages/mksh.git/commitdiff
- expand ~ in ENV
authorKacper Kornet <draenog@pld-linux.org>
Thu, 7 Jul 2011 22:12:17 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- as /etc/mkshrc is not sourced any more when ENV is set, the patch for
  tests is obsoleted

Changed files:
    mksh-mkshrc_support.patch -> 1.3

mksh-mkshrc_support.patch

index 89a7620ba7ccab053c72584948d2c9bf23c37987..5d95bd93d3017fd38e2ff737c8a4fee579e9e51f 100644 (file)
@@ -6,7 +6,7 @@
                /* include $ENV */
 -              env_file = substitute(substitute("${ENV:-" MKSHRC_PATH "}", 0),
 -                  DOTILDE);
-+                env_file = substitute("${ENV}", 0);
++                env_file = substitute(substitute("${ENV}", 0), DOTILDE);
                if (*env_file != '\0')
                        include(env_file, 0, NULL, 1);
 +                else { 
        }
  
        if (restricted) {
---- check.t~   2011-07-07 09:55:26.802497928 +0100
-+++ check.t    2011-07-07 09:55:31.859107570 +0100
-@@ -5908,13 +5908,13 @@
-       Ensure ±U on the command line is honoured
-       (this test may pass falsely depending on CPPFLAGS)
- stdin:
--      export i=0
--      code='if [[ $- = *U* ]]; then echo $i on; else echo $i off; fi'
--      let i++; "$__progname" -U -c "$code"
--      let i++; "$__progname" +U -c "$code"
--      let i++; "$__progname" -U -ic "$code"
--      let i++; "$__progname" +U -ic "$code"
--      echo $((++i)) done
-+      export iter=0
-+      code='if [[ $- = *U* ]]; then echo $iter on; else echo $iter off; fi'
-+      let iter++; "$__progname" -U -c "$code"
-+      let iter++; "$__progname" +U -c "$code"
-+      let iter++; "$__progname" -U -ic "$code"
-+      let iter++; "$__progname" +U -ic "$code"
-+      echo $((++iter)) done
- expected-stdout:
-       1 on
-       2 off
This page took 0.048785 seconds and 4 git commands to generate.