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

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

    <bug>
          <bug_id>24205</bug_id>
          
          <creation_ts>2010-10-03 00:34:29 +0400</creation_ts>
          <short_desc>--norc option does not work for bash invoked as bash.</short_desc>
          <delta_ts>2010-10-06 11:53:20 +0400</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</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="viy">viy</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>serg.borovikov</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113012</commentid>
    <comment_count>0</comment_count>
    <who name="viy">viy</who>
    <bug_when>2010-10-03 00:34:29 +0400</bug_when>
    <thetext>bash always read ~/.bashrc even when invoked with --norc option
bash-3.2.51-alt1 (sisyphus/x86_64). The same is true for 5.1 bash-3.2.48-alt3.
due to this bug I can&apos;t get rid of bashisms in my scripts.
$ sh -v -c &apos;echo hi&apos;
echo hi
hi

$ bash --norc --noprofile -v -c &apos;echo hi&apos;
# .bashrc
# User specific aliases and functions
[ ......................................]
echo hi
hi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113189</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Borovikov">serg.borovikov</who>
    <bug_when>2010-10-06 11:53:20 +0400</bug_when>
    <thetext>Читаем &apos;man bash&apos;:
&gt;   --norc
&gt;          Не читает и не выполняет персональный файл инициализации
&gt;          ~/.bashrc, если командный интерпретатор работает интерактивно. Эта опция
&gt;          по умолчанию включена, если интерпретатор вызван как sh.
Пробуем:
&gt; $ bash --norc --noprofile -v
&gt; bash-3.2$
либо
&gt; $ bash --noprofile -v
&gt; # .bashrc
&gt; # User specific aliases and functions
&gt; [ ......................................]
&gt; bash-3.2$
Всё ок.
При запуске с ключом &apos;-c ...&apos; это не интерактивный режим.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>