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: Tony Smith <tony AT smee.org>
  • To: nealbirch <nealbirch AT attbi.com>, eschabell AT sourcemage.org
  • Cc: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire]getting error in this code, why?
  • Date: Mon, 28 Oct 2002 10:21:07 +0000

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!

Tony





Archive powered by MHonArc 2.6.24.

Top of Page