Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
More brokenness of here-docs in `functions' output
- X-seq: zsh-workers 15637
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: More brokenness of here-docs in `functions' output
- Date: Thu, 16 Aug 2001 03:13:53 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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