From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Broken lisp/Makefile.w32-in Date: Sat, 31 Aug 2002 20:25:01 -0300 Sender: emacs-devel-admin@gnu.org Message-ID: <20020831201438.49D3.LEKTU@terra.es> References: <20020830135553.852A.LEKTU@terra.es> <7263-Fri30Aug2002220645+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1030818412 5731 127.0.0.1 (31 Aug 2002 18:26:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 31 Aug 2002 18:26:52 +0000 (UTC) Cc: Takaaki.Ota@am.sony.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17lCxP-0001UK-00 for ; Sat, 31 Aug 2002 20:26:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17lDUm-0003rl-00 for ; Sat, 31 Aug 2002 21:01:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lCys-0004fz-00; Sat, 31 Aug 2002 14:28:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17lCvP-0004Ct-00 for emacs-devel@gnu.org; Sat, 31 Aug 2002 14:24:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17lCvN-0004CY-00 for emacs-devel@gnu.org; Sat, 31 Aug 2002 14:24:46 -0400 Original-Received: from [213.4.129.129] (helo=tsmtp1.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lCvM-0004CI-00 for emacs-devel@gnu.org; Sat, 31 Aug 2002 14:24:44 -0400 Original-Received: from [193.153.110.54] ([193.153.110.54]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15 tsmtp1 Mar 14 2002 21:29:48) with ESMTP id H1Q0H501.RI5; Sat, 31 Aug 2002 20:24:41 +0200 Original-To: Eli Zaretskii In-Reply-To: <7263-Fri30Aug2002220645+0300-eliz@is.elta.co.il> X-Mailer: Becky! ver. 2.05.01 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7220 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7220 On Fri, 30 Aug 2002 22:06:45 +0300 "Eli Zaretskii" wrote: > Can you figure out why is that failing? A bug in command.com's handling of "if" on for loops, I'd say. Consider this test program: @echo off del test.txt for %%i in (*.*) do echo "%%i" >> test.txt echo ========================== type test.txt echo ========================== Running it in a directory with files file[1-3].bat gives: ========================== "FILE2.BAT" "TEST.TXT" "FILE1.BAT" "FILE3.BAT" ========================== However, substituting the "for" with: for %%i in (*.*) do if 1==1 echo "%%i" >> test.txt the result is now: "TEST.TXT" "FILE1.BAT" "FILE3.BAT" ========================== "FILE2.BAT" ========================== -- Juanma Barranquero