Re: Trailing LFs in shell scripts
Re: Trailing LFs in shell scripts
- Subject: Re: Trailing LFs in shell scripts
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 16 Nov 2002 21:44:02 -0800
On 11/14/02 6:27 PM, "Philip Aker" <email@hidden> wrote:
>
On Thursday, Nov 14, 2002, at 09:49 US/Pacific, Paul Berkowitz wrote:
>
>
> But it's that final trailing newline that shows up even when my
>
> internal
>
> lineEnds are CR that bothers me:
>
>
>
> [...]
>
> do shell script "echo '" & txt & "' > \"" & utestPath & "\"" with
>
> altering
>
> line endings -- one line
>
>
> Even here, there's a trailing LF. Why?
>
>
do shell script "echo -n ...
>
>
-n in this context means the same as Tcl's -nonewline for 'puts' (don't
>
output trailing newline).
Ah, thanks Philip. Another mystery solved.
Sorry for the tardy response. Your message arrived here two days, 3 hours
and 15 minutes after you sent it. A record? I'll cc you directly now.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.