Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire]getting error in this code, why?

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: nealbirch <nealbirch AT attbi.com>
  • To: Tony Smith <tony AT smee.org>
  • Cc: eschabell AT sourcemage.org, sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire]getting error in this code, why?
  • Date: Mon, 28 Oct 2002 11:21:20 -0500

Tony Smith wrote:
On Monday 28 October 2002 10:14 am, Tony Smith wrote:


It's because a "here" document terminator MUST appear at the beginning of a line. Guaranteed to mess up your nicely indented code :-)


Found this in "man bash"

If the redirection operator is <<-, then all leading tab characters are
stripped from input lines and the line containing delimiter. This
allows here-documents within shell scripts to be indented in a natural
fashion.

So you can keep your nice tidy indenting as long as you use <<-EOF instead of <<EOF. You're still not allowed trailing spaces though and you're also not allowed to use leading spaces for your indentation - tabs only!

Good one. have to do some searching then for the <<EOF stuff, this might explain some of the other errors?


--
"You can fool some of the people all of the time
--and those are the ones you have to concentrate on!"
GW Bush-- from the N.Y. Times





Archive powered by MHonArc 2.6.24.

Top of Page