components/bash/patches/solaris-026.cd_in_rcfile.patch
branchs11u3-sru
changeset 7627 4758b76d5ad5
equal deleted inserted replaced
7623:d89b1c5817f5 7627:4758b76d5ad5
       
     1 # There seems to be problem with bash
       
     2 #
       
     3 # $ bash -c 'bash -i i; bash -i i'
       
     4 # bash -c 'bash -i i; bash -i i'
       
     5 # bash: i: No such file or directory
       
     6 #
       
     7 # [1]+  Stopped                 bash -c 'bash -i i; bash -i i'
       
     8 #
       
     9 # I found out because the tests were stopped in the middle. It was caused by
       
    10 # having 'cd /somewhere' in my ~/.bashrc. The tests were being stopped in
       
    11 # read-test, exactly in read2.sub when 'read -t 2 a < /dev/tty' was executed.
       
    12 # This workaround stops the tests to be stopped in the middle.
       
    13 #
       
    14 # reported to [email protected]
       
    15 
       
    16 --- tests/execscript	2016-11-28 03:07:12.420018055 -0800
       
    17 +++ tests/execscript	2016-11-28 03:03:36.431541831 -0800
       
    18 @@ -108,7 +108,7 @@ ${THIS_SH} ./exec6.sub
       
    19  # checks for properly deciding what constitutes an executable file
       
    20  ${THIS_SH} ./exec7.sub
       
    21  
       
    22 -${THIS_SH} -i ./exec8.sub
       
    23 +${THIS_SH} --rcfile /dev/null -i ./exec8.sub
       
    24  
       
    25  ${THIS_SH} ./exec9.sub
       
    26