• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trailing LFs in shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Trailing LFs in shell scripts (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Shell Script on a string
  • Next by Date: Re: Scripting "Startup Disk" revisited
  • Previous by thread: Re: Trailing LFs in shell scripts
  • Next by thread: Re: Trailing LFs in shell scripts
  • Index(es):
    • Date
    • Thread