Re: Trailing LFs in shell scripts
Re: Trailing LFs in shell scripts
- Subject: Re: Trailing LFs in shell scripts
- From: Philip Aker <email@hidden>
- Date: Thu, 14 Nov 2002 18:27:44 -0800
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).
Philip Aker
http://www.aker.ca
_______________________________________________
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.