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

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

    <bug>
          <bug_id>9148</bug_id>
          
          <creation_ts>2006-02-24 16:38:01 +0300</creation_ts>
          <short_desc>Проблемы с bash вызваным как /bin/sh</short_desc>
          <delta_ts>2008-03-27 20:40:53 +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>bash-completion</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9273</dependson>
    
    <dependson>15068</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="drF_ckoff">dfo</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>ildar</cc>
    
    <cc>kopilo4ka</cc>
    
    <cc>rider</cc>
    
    <cc>vvk</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36222</commentid>
    <comment_count>0</comment_count>
    <who name="drF_ckoff">dfo</who>
    <bug_when>2006-02-24 16:38:01 +0300</bug_when>
    <thetext>[root@nb ~]# su -l -s /bin/sh dfo
-sh: shopt: progcomp: invalid shell option name
-sh: complete: command not found
...

Проблема вылезает на /etc/cron.*/makewhatis, например.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38463</commentid>
    <comment_count>1</comment_count>
      <attachid>1510</attachid>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2006-06-01 16:04:17 +0400</bug_when>
    <thetext>Created attachment 1510
патч проверки вызванного шелла</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38464</commentid>
    <comment_count>2</comment_count>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2006-06-01 16:04:55 +0400</bug_when>
    <thetext>Надоело уже вычищать логи. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39166</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Murygin">alex.murugin</who>
    <bug_when>2006-07-14 14:56:17 +0400</bug_when>
    <thetext>bash-completion-20060301-alt03 with bugfix uploaded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39172</commentid>
    <comment_count>4</comment_count>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2006-07-14 19:32:44 +0400</bug_when>
    <thetext>bash-completion.sh не изменялся, так что все равно не работает. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39176</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Murygin">alex.murugin</who>
    <bug_when>2006-07-14 19:40:41 +0400</bug_when>
    <thetext>Он просто еще в инкаминге</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39279</commentid>
    <comment_count>6</comment_count>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2006-07-24 11:38:47 +0400</bug_when>
    <thetext>Патчик не идеален, но ошибка fixed. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64324</commentid>
    <comment_count>7</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-02-22 01:17:05 +0300</bug_when>
    <thetext>bash-3.1.17-alt4
sh-3.1.17-alt4
bash-completion-20060301-alt04

$ sh --login
sh: shopt: progcomp: invalid shell option name
sh: complete: command not found
&lt; many times &gt;
sh: complete: command not found
sh: shopt: hostcomplete: invalid shell option name
sh: complete: command not found
sh: shopt: hostcomplete: invalid shell option name
sh: complete: command not found
&lt; many times &gt;
sh: complete: command not found
sh-3.1$ </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64325</commentid>
    <comment_count>8</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-02-22 01:24:03 +0300</bug_when>
    <thetext>If it is moved to /etc/bashrc.d/ (#9273), this problem will be solved. (`sh
--login&apos; doesn&apos;t read /etc/bashrc.d/.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64403</commentid>
    <comment_count>9</comment_count>
    <who name="Alex Murygin">alex.murugin</who>
    <bug_when>2008-02-22 17:40:36 +0300</bug_when>
    <thetext>Залито исправленное</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66639</commentid>
    <comment_count>10</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-03-25 20:17:09 +0300</bug_when>
    <thetext>Спасибо! С bash-completion-20060301-alt05 лучше. (А то, что происходит вот так,
так это из-за /etc/profile.d/gvfs-bash-completion.sh из gvfs-0.2.0.1-alt2,
наверное -- https://bugzilla.altlinux.org/show_bug.cgi?id=15068 :

$ sh --login
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh: complete: command not found
sh-3.1$ 

.)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1510</attachid>
            <date>2006-06-01 16:04:17 +0400</date>
            <delta_ts>2006-06-01 16:04:17 +0400</delta_ts>
            <desc>патч проверки вызванного шелла</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>910</size>
            <attacher name="Vadim Gusev">kopilo4ka</attacher>
            
              <data encoding="base64">ZGlmZiAtdU5yIG9yaWcvZXRjL3Byb2ZpbGUuZC9iYXNoLWNvbXBsZXRpb24uc2ggbXkvZXRjL3By
b2ZpbGUuZC9iYXNoLWNvbXBsZXRpb24uc2gKLS0tIG9yaWcvZXRjL3Byb2ZpbGUuZC9iYXNo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