| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | there | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | one - alpha | 
					
						
							|  |  |  | two - beta | 
					
						
							|  |  |  | three - gamma | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | hi\ | 
					
						
							|  |  |  | there$a | 
					
						
							|  |  |  | stuff | 
					
						
							|  |  |  | hi\ | 
					
						
							|  |  |  | there | 
					
						
							|  |  |  | EO\ | 
					
						
							|  |  |  | F | 
					
						
							|  |  |  | hi | 
					
						
							|  |  |  | hi | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | tab 1 | 
					
						
							|  |  |  | tab 2 | 
					
						
							|  |  |  | tab 3 | 
					
						
							|  |  |  | abc | 
					
						
							|  |  |  | def ghi | 
					
						
							|  |  |  | jkl mno | 
					
						
							|  |  |  | fff is a function | 
					
						
							|  |  |  | fff ()  | 
					
						
							|  |  |  | {  | 
					
						
							| 
									
										
										
										
											2006-10-10 14:15:34 +00:00
										 |  |  |     ed /tmp/foo  > /dev/null <<ENDOFINPUT | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | /^name/d | 
					
						
							|  |  |  | w | 
					
						
							|  |  |  | q | 
					
						
							|  |  |  | ENDOFINPUT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     aa=1 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | fff is a function | 
					
						
							|  |  |  | fff ()  | 
					
						
							|  |  |  | {  | 
					
						
							| 
									
										
										
										
											2006-10-10 14:15:34 +00:00
										 |  |  |     ed /tmp/foo > /dev/null  <<ENDOFINPUT | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | /^name/d | 
					
						
							|  |  |  | w | 
					
						
							|  |  |  | q | 
					
						
							|  |  |  | ENDOFINPUT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     aa=1 | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2009-02-19 22:21:29 +00:00
										 |  |  | foo is a function | 
					
						
							|  |  |  | foo ()  | 
					
						
							|  |  |  | {  | 
					
						
							|  |  |  |     echo; | 
					
						
							|  |  |  |     cat  <<END | 
					
						
							|  |  |  | bar | 
					
						
							|  |  |  | END | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     cat  <<EOF | 
					
						
							|  |  |  | qux | 
					
						
							|  |  |  | EOF | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bar | 
					
						
							|  |  |  | qux | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bar | 
					
						
							|  |  |  | qux | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | abc def geh | 
					
						
							| 
									
										
										
										
											2016-09-15 16:59:08 -04:00
										 |  |  | ./heredoc3.sub: line 9: warning: here-document at line 7 delimited by end-of-file (wanted `EOF') | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | = here is the text = | 
					
						
							| 
									
										
										
										
											2016-09-15 16:59:08 -04:00
										 |  |  | ./heredoc3.sub: line 15: warning: here-document at line 13 delimited by end-of-file (wanted `EOF') | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | this paren ) is not a problem | 
					
						
							| 
									
										
										
										
											2016-09-15 16:59:08 -04:00
										 |  |  | ./heredoc3.sub: line 21: warning: here-document at line 19 delimited by end-of-file (wanted `EOF') | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | these balanced parens ( ) are not a problem | 
					
						
							| 
									
										
										
										
											2016-09-15 16:59:08 -04:00
										 |  |  | ./heredoc3.sub: line 27: warning: here-document at line 25 delimited by end-of-file (wanted `EOF') | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | quoted balanced parens \( ) are not a problem either | 
					
						
							|  |  |  | more text in a subshell | 
					
						
							|  |  |  | some more text in a different subshell | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | hello | 
					
						
							|  |  |  | hello | 
					
						
							|  |  |  | ENDEND | 
					
						
							|  |  |  | end ENDEND | 
					
						
							|  |  |  | hello | 
					
						
							|  |  |  | end hello | 
					
						
							|  |  |  | end x*x | 
					
						
							|  |  |  | helloEND | 
					
						
							|  |  |  | end helloEND | 
					
						
							|  |  |  | hello | 
					
						
							|  |  |  | \END | 
					
						
							|  |  |  | end hello<NL>\END | 
					
						
							| 
									
										
										
										
											2016-09-15 16:59:08 -04:00
										 |  |  | ./heredoc3.sub: line 78: warning: here-document at line 76 delimited by end-of-file (wanted `EOF') | 
					
						
							|  |  |  | ./heredoc3.sub: line 79: syntax error: unexpected end of file | 
					
						
							| 
									
										
										
										
											2011-11-21 20:51:19 -05:00
										 |  |  | comsub here-string | 
					
						
							| 
									
										
										
										
											2014-02-26 09:36:43 -05:00
										 |  |  | ./heredoc.tests: line 105: warning: here-document at line 103 delimited by end-of-file (wanted `EOF') | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | hi | 
					
						
							|  |  |  | there |