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

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

    <bug>
          <bug_id>7382</bug_id>
          
          <creation_ts>2005-07-15 17:46:10 +0400</creation_ts>
          <short_desc>не дополняет имя цепоски в iptables -E chain</short_desc>
          <delta_ts>2007-10-17 20:33:54 +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-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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Afanasov Dmitry">ender</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>ildar</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27352</commentid>
    <comment_count>0</comment_count>
    <who name="Afanasov Dmitry">ender</who>
    <bug_when>2005-07-15 17:46:11 +0400</bug_when>
    <thetext>хотелось бы дополнения для переименования цепочек. конечно пользуется очень 
редко, но иногда приходится :)

далее было бы неплохо дополнения для -N и второго параметра -E - часто цепочки у 
меня следуют одной системе наименования. похожи короче.

время будет - патчик сваяю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29078</commentid>
    <comment_count>1</comment_count>
    <who name="Afanasov Dmitry">ender</who>
    <bug_when>2005-08-25 13:11:08 +0400</bug_when>
    <thetext>мда, а вот и патчик:
--- bash_completion.old 2005-08-25 13:03:03 +0400
+++ bash_completion     2005-08-25 13:10:05 +0400
@@ -2895,9 +2895,13 @@
        elif [[ $COMP_LINE == *-t\ *mangle* ]]; then
                table=&quot;-t mangle&quot;
        fi
+    
+    if [[ $COMP_LINE == *-E* ]]; then
+        rename=yes
+    fi
 
        case &quot;$prev&quot; in
-       -*[AIDRPFXLZ])
+       -*[AIDRPFXLZEN])
                COMPREPLY=( $( compgen -W &apos;`iptables $table -nL | \
                            sed -ne &quot;s/^Chain \([^ ]\+\).*$/\1/p&quot;`&apos; -- $cur ) )
                ;;
@@ -2923,7 +2927,10 @@
                fi
                ;;
        *)
-               if [[ &quot;$cur&quot; == -* ]]; then
+        if [[ &quot;$rename&quot; -eq &quot;yes&quot; ]]; then
+                       COMPREPLY=( $( compgen -W &apos;`iptables $table -nL | \
+                           sed -ne &quot;s/^Chain \([^ ]\+\).*$/\1/p&quot;`&apos; -- $cur ) )
+        elif [[ &quot;$cur&quot; == -* ]]; then
                    COMPREPLY=( $( compgen -W &apos;-i -o -s -d -p -f -m --append \
                    --delete --insert --replace --list --flush --zero --new \
                    --delete-chain --policy --rename-chain --proto --source \
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56660</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Murygin">alex.murugin</who>
    <bug_when>2007-10-17 20:33:53 +0400</bug_when>
    <thetext>alt04 в инкоминге. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>