sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- 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
-
[SM-Grimoire]getting error in this code, why?,
Eric Schabell, 10/26/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
nealbirch, 10/26/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
Tony Smith, 10/28/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
Tony Smith, 10/28/2002
- Re: [SM-Grimoire]getting error in this code, why?, nealbirch, 10/28/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
Tony Smith, 10/28/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
Tony Smith, 10/28/2002
- Re: [SM-Grimoire]getting error in this code, why?, Dufflebunk, 10/27/2002
-
Re: [SM-Grimoire]getting error in this code, why?,
nealbirch, 10/26/2002
Archive powered by MHonArc 2.6.24.