<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>17795</bug_id>
          
          <creation_ts>2008-11-06 03:43:55 +0300</creation_ts>
          <short_desc>bash started by konsole does not execute ~/.bash_profile</short_desc>
          <delta_ts>2008-11-07 13:43:39 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kde4base-konsole</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>16860</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Filimonov">denis</reporter>
          <assigned_to name="Sergey V Turchin">zerg</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80724</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Filimonov">denis</who>
    <bug_when>2008-11-06 03:43:55 +0300</bug_when>
    <thetext>Bash shells in KDE4&apos;s konsole tabs fail to initialize properly.
Judging by strace output, bash doesn&apos;t read any of ~/.bash* files except ~/.bash_history

The problem does not appear when bash is started from other terminals such as xterm or KDE3&apos;s konsole.

I&apos;ve tried /bin/bash and /bin/bash -i, makes no difference.

kde4base-konsole-4.1.2-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80771</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Filimonov">denis</who>
    <bug_when>2008-11-07 00:07:29 +0300</bug_when>
    <thetext>I think I figured out what happened.
/usr/lib/kde4bin/konsole has setgid flag (utemper group) and it executes shell with the user&apos;s real gid and utemper effective gid.

According to bash manual page ``If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, no startup files are read...&apos;&apos;

I believe konsole should do setegid(getgid()) before executing the shell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80780</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2008-11-07 09:57:42 +0300</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 16860 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80792</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2008-11-07 13:43:38 +0300</bug_when>
    <thetext>(In reply to comment #1)
&gt; ``If the shell is started with the effective user (group) id not equal to the real user (group) id, and the
&gt; -p option is not supplied, no startup files are read...&apos;&apos;
Спасибо за наводку</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>