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

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

    <bug>
          <bug_id>29557</bug_id>
          
          <creation_ts>2013-11-06 18:38:32 +0400</creation_ts>
          <short_desc>Ошибка обрезания пробельных символов с квадратными скобками</short_desc>
          <delta_ts>2013-11-07 23:36:45 +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>libshell</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>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143659</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2013-11-06 18:38:32 +0400</bug_when>
    <thetext>Если в значении встречаются квадратные скобки (как открывающая, так и закрывающая), то обрезание утраивает (!) результат.

[cas@cas ~]$ . shell-var
[cas@cas ~]$ shell_var_trim zz &apos;   Comment(en) &apos;; echo &quot;=$zz=&quot;
=Comment(en)=
[cas@cas ~]$ shell_var_trim zz &apos;   Comment[en] &apos;; echo &quot;=$zz=&quot;
=Comment[en]   Comment[en] Comment[en]=</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143670</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-11-07 12:02:34 +0400</bug_when>
    <thetext>Проверь пожалуйста: git.alt:/people/legion/packages/libshell.git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143672</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2013-11-07 14:12:19 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Проверь пожалуйста: git.alt:/people/legion/packages/libshell.git
Работает, спасибо.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143689</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2013-11-07 23:36:45 +0400</bug_when>
    <thetext>libshell-0.1.9-alt1 -&gt; sisyphus:

* Thu Nov 07 2013 Alexey Gladkov &lt;legion@altlinux&gt; 0.1.9-alt1
- Add functions to daemonize process.
- Add logger support.
- Reimplement shell_var_trim function (ALT#29557).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>