X-Recipient: archive-cygwin AT delorie DOT 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 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 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 Reply-To: shawn kielty To: cygwin AT cygwin DOT 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 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