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

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

    <bug>
          <bug_id>23979</bug_id>
          
          <creation_ts>2010-08-28 16:55:07 +0400</creation_ts>
          <short_desc>broken parameter expansion?</short_desc>
          <delta_ts>2012-01-21 11:56:42 +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>zsh</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>arseny</cc>
    
    <cc>george</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111682</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-08-28 16:55:07 +0400</bug_when>
    <thetext>$ list=&quot;a b c&quot;
$ for i in $list; do echo $i; done
a b c
$ rpm -q zsh
zsh-4.3.10-alt6
$ ls -l ~/.zshrc
-rw-r--r-- 1 mike mike 0 Aug 28 15:49 /home/mike/.zshrc

Reproducible on x86_64 and i586 builds, just in case.  And works as expected in bash:

[mike@pad ~]$ list=&quot;a b c&quot;
[mike@pad ~]$ for i in $list; do echo $i; done
a
b
c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128417</commentid>
    <comment_count>1</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2012-01-20 16:54:03 +0400</bug_when>
    <thetext>Are you suggesting to turn SH_WORD_SPLIT on by default? It&apos;s already turned on in sh emulation mode, and zsh isn&apos;t sh. Use ${=list} intead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128426</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2012-01-21 11:56:42 +0400</bug_when>
    <thetext>(boom!) Indeed:
http://zsh.sourceforge.net/FAQ/zshfaq03.html
http://www.zsh.org/mla/users/1997/msg00033.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>