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

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

    <bug>
          <bug_id>53824</bug_id>
          
          <creation_ts>2025-04-11 19:56:39 +0300</creation_ts>
          <short_desc>Добавьте утилите control bash-автодополнение</short_desc>
          <delta_ts>2025-04-14 08:44:25 +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>control</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="LinInstr">lininstr</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>cas</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>262895</commentid>
    <comment_count>0</comment_count>
    <who name="LinInstr">lininstr</who>
    <bug_when>2025-04-11 19:56:39 +0300</bug_when>
    <thetext>Надо добавить файл /etc/bash_completion.d/control со следующим содержанием:
function _control()
{
  latest=&quot;${COMP_WORDS[$COMP_CWORD]}&quot;
  prev=&quot;${COMP_WORDS[$COMP_CWORD - 1]}&quot;
  words=&quot;&quot;
 
  case &quot;${prev}&quot; in
    control) words=&quot;$(ls /etc/control.d/facilities/)&quot; ;;
    *)       words=&quot;$([ -f &quot;/etc/control.d/facilities/$prev&quot; ] &amp;&amp; {
            control &quot;$prev&quot; list;
            echo help status 
    }; )&quot; ;;
  esac
 
  COMPREPLY=($(compgen -W &quot;$words&quot; -- $latest))
  return 0
}
 
complete -F _control control</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262896</commentid>
    <comment_count>1</comment_count>
    <who name="LinInstr">lininstr</who>
    <bug_when>2025-04-11 19:57:41 +0300</bug_when>
    <thetext>Надо добавить в пакет файл /etc/bash_completion.d/control со следующим содержанием:
function _control()
{
  latest=&quot;${COMP_WORDS[$COMP_CWORD]}&quot;
  prev=&quot;${COMP_WORDS[$COMP_CWORD - 1]}&quot;
  words=&quot;&quot;
 
  case &quot;${prev}&quot; in
    control) words=&quot;$(ls /etc/control.d/facilities/)&quot; ;;
    *)       words=&quot;$([ -f &quot;/etc/control.d/facilities/$prev&quot; ] &amp;&amp; {
            control &quot;$prev&quot; list;
            echo help status 
    }; )&quot; ;;
  esac
 
  COMPREPLY=($(compgen -W &quot;$words&quot; -- $latest))
  return 0
}
 
complete -F _control control</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>