• 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: 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.

  • Follow-Ups:
    • Re: Trailing LFs in shell scripts
      • From: Paul Berkowitz <email@hidden>
    • Re: Trailing LFs in shell scripts
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Trailing LFs in shell scripts (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: [OT] Re: Entourage: Kill that Daemon! (Shell)
  • Next by Date: Re: Why the speed difference? (was: Problem with modification date of file...)
  • Previous by thread: Re: Trailing LFs in shell scripts
  • Next by thread: Re: Trailing LFs in shell scripts
  • Index(es):
    • Date
    • Thread