Re: carriage returns in HERE statements
- From: usenet@xxxxxxxxxxxxxxx
- Date: 26 Feb 2007 10:46:14 -0800
On Feb 26, 10:28 am, "bdz" <bdalz...@xxxxxxx> wrote:
That is the carriage returns not marked by \n in the script are
printing to the terminal as carriage returns
You typed the program output (and made three typoos in the process) -
please don't do that. cut-and-paste instead.
Your program is apparently producing the correct output (we don't know
for sure, since you typed the output instead of cut-and-paste). When
you use a heredoc, every single character is included (including any
newlines that you put in the text by way of hitting your ENTER key).
If you terminate a line with a \n you get two newlines - one that you
included by hitting ENTER and one that you included by typing \n.
If you saw different behavior from another program it's probably
because $\ had been redefined.
--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)
.
- Follow-Ups:
- Re: carriage returns in HERE statements
- From: bdz
- Re: carriage returns in HERE statements
- References:
- carriage returns in HERE statements
- From: bdz
- carriage returns in HERE statements
- Prev by Date: Re: carriage returns in HERE statements
- Next by Date: :ATTR(:default<> problem
- Previous by thread: Re: carriage returns in HERE statements
- Next by thread: Re: carriage returns in HERE statements
- Index(es):
Relevant Pages
|