From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29678 invoked by alias); 23 Sep 2011 10:30:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16404 Received: (qmail 25153 invoked from network); 23 Sep 2011 10:30:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=EvwTs38zvKK06AnoTJG0sSb4Plhj/A8wQ0s5OgfqWi4=; b=k0s1SAIxiuSpoJWFCg5jfpxms3UylzjcRI3bNraruIEKQWWFEbb9fR2/SGp5qXDdEH sGmEKiqaLq8Jn6HHMVabd0CVYO5/tnPIb5/jx4nNF6HcWrrqnS/0OvWUmgTt7rCWxkr9 xxpTgKvXtKVjbsitNkTSqW31rL0hbSEnbRsg4= Message-ID: <4E7C5F9D.2070308@gmail.com> Date: Fri, 23 Sep 2011 13:29:49 +0300 From: Volodya Khomchak User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Strange behavior with "for i in .." Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I faced with strange behavior with "for i in ..". So the problem is next: # for i in /etc/profile.d/*.sh;do echo $i;done # zsh: bad math expression: operand expected at `/etc/profi...' But if I change "i" to "file" it would work: # for file in /etc/profile.d/*.sh;do echo $file;done # /etc/profile.d/1.sh # /etc/profile.d/2.sh zsh --version zsh 4.3.10 (x86_64) So what is going on here ? Thanks, Volodya