X-Spam-Check-By: sourceware.org X-Ninja-PIM: Scanned by Ninja X-Ninja-AttachmentFiltering: (no action) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: bash scripts failing on xp64 Date: Thu, 1 Mar 2007 16:35:21 -0700 Message-ID: From: John Lilley To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l21NZWGX025773 OS: Windows XP 64 Cygwin Version: 1.5.24-2 I'm finding that my install of cygwin will run interactive scripts just fine, but won't run them from a file. For example, here is a script in f:/temp/foo: $ cat f:/temp/foo echo "X" for i in * do echo $i done It fails if I try to source it: $ . f:/temp/foo X 'ash: f:/temp/foo: line 3: syntax error near unexpected token `do 'ash: f:/temp/foo: line 3: `do But if I paste it directly into the shell window its fine: $ echo "X" X $ for i in * > do > echo $i > done AUTOEXEC.BAT CONFIG.SYS Config.Msi Documents and Settings IO.SYS MSDOS.SYS NTDETECT.COM [...] I've re-installed cygwin, but no avail. Anyone else seeing this? Thanks, John -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/