Re: while and cats

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Darrin Chandler
Dato:  
Til: Main PLUG discussion list
Emne: Re: while and cats
On Mon, Feb 05, 2007 at 01:23:32PM -0700, Eric Shubes wrote:
> > Check the manpage for bash to see about alternate
> > forms of <<EOF which ignore leading whitespace...
> >
>
> Are there any? I hate the way inline files screw up my pretty formatting. :)


Yes, at least in ksh. I'm sure bash can do it, too. In ksh you use "<<-"
instead of "<<" and it will strip any leading tabs from there here doc.
Note that it's TABS not WHITESPACE. So it's possible to have internal
indenting with spaces, but tab indented shell script.

-- 
Darrin Chandler                   |  Phoenix BSD Users Group
          |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/darrin/  |
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss