Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

More brokenness of here-docs in `functions' output



Consider:

threedocs() {
  cat <<EOF
this is $path
EOF
  cat <<\EOF
this is $path
EOF
  cat <<-EOF
	this is $path
	EOF
}

This function executes correctly, printing:

this is /home/schaefer/bin /usr/local/bin etc. etc.
this is $path
this is /home/schaefer/bin /usr/local/bin etc. etc.

But look at the output of `functions threedocs':

threedocs () {
        cat <<< 'this is $path'
        cat <<< 'this is $path'
        cat <<< 'this is $path'
}

Oops.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author