This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Here-Document execution fails with extra space after closing delimiter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]