This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Here-Document execution fails with extra space after closing delimiter
- From: shawn kielty <shawnkielty at earthlink dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 3 Apr 2013 14:02:47 -0700 (GMT-07:00)
- Subject: Here-Document execution fails with extra space after closing delimiter
- Reply-to: shawn kielty <shawnkielty at earthlink dot net>
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