X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:to:subject
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=AfS//90CSvVkf41kVUMX9Yu1jcunlYGdel5EKEcAr1NLacQxcOy61
	5FSQjNFU9X+Ilouhw/twzjk6KkoYDW74cX4chzDrOTbkEZmtUiQz/NQiL1QbW7D1
	4YFWH4wxy9KEJ+pXO0jrFErojj3XBiFjoMVhZBTlJ2cuXPlBwOYcXQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:to:subject
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=lC7eEdfhZVZ5kMDhqpqYSDGiqxs=; b=kaS3opH57r/t4lYncNXhhh5veicX
	8zT3jMR1wK4vaWp6mZDBZ6wkSZT2LylPTHr4Bo5ZMenT29aklUsSCAontwVscFte
	pk8Jb5bhhkB1WriIokhkRFRycG6ms+twICNFGrV60a66sUFaKbpggDAztNXibL2n
	lS39TxhFBsV3FJI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Message-ID: <21821681.1365022967088.JavaMail.root@wamui-junio.atl.sa.earthlink.net>
Date: Wed, 3 Apr 2013 14:02:47 -0700 (GMT-07:00)
From:  shawn kielty <shawnkielty@earthlink.net>
Reply-To:  shawn kielty <shawnkielty@earthlink.net>
To: cygwin@cygwin.com
Subject: Here-Document execution fails with extra space after closing delimiter
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-ELNK-Trace: 2682cca5625165d4edcd0c803be768ef9ef193a6bfc3dd487614b5522e72ab647d4906f49daff5823788860f0b40a802350badd9bab72f9c350badd9bab72f9c

this script works: 
#! /bin/bash

tclsh << SCRIPT 
puts "hello world" 
SCRIPT

while this script fails: 

#! /bin/bash

tclsh << SCRIPT 
puts "hello world" 
SCRIPT 

with the error:


$ ./embeddedTcl.sh
./embeddedTcl.sh: line 5: warning: here-document at line 3 delimited by end-of-file (wanted `DEL')
hello world
invalid command name "DEL"


$ uname -a
uname -a
CYGWIN_NT-6.1-WOW64 L4156392 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin

$ bash -version
bash -version
GNU bash, version 4.1.10(4)-release (i686-pc-cygwin)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

