This used to work but doesn't now:
foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}
foo "bar"
Reported-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			58 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			58 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
foo () {
 | 
						|
cat <<EOF && { echo "$1" ; }
 | 
						|
$1
 | 
						|
EOF
 | 
						|
}
 | 
						|
 | 
						|
foo "bar"
 |