• 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: linebreak in a shell script; was Re: What's wrong with this call to zip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linebreak in a shell script; was Re: What's wrong with this call to zip?


  • Subject: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 29 Feb 2008 21:06:41 -0500

Chris:

Good point about the multiple definitions of "character" in the
Standard.  I was mostly concerned about internal consistency in
AppleScript, which also goes to the user/programmer expertise
spectrum. The "id of the first character of (return & linefeed)" is
{13,10}, and "character id {13, 10}" gives you CRLF; so far so good.
But "character id 13 & character id 10" *also* gives you CRLF, which
means that in the latter expression "character" must mean something
other than "grapheme cluster".  I just think the conflation of
different abstraction levels in one term is potentially more confusing
than having explicit commands for dealing with them separately.
Though I absolutely agree with you that a "grapheme cluster" command
would be, well, yucky.

Also, having a character id be sometimes a number and sometimes a list
complicates code written for the general case, though I understand the
desire to optimize for the by-far-more-common case of one character =
one number.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: linebreak in a shell script; was Re: What's wrong with this call to zip? (From: "Mark J. Reed" <email@hidden>)
 >Re: linebreak in a shell script; was Re: What's wrong with this call to zip? (From: Shane Stanley <email@hidden>)
 >Re: linebreak in a shell script; was Re: What's wrong with this call to zip? (From: "Mark J. Reed" <email@hidden>)
 >Re: linebreak in a shell script; was Re: What's wrong with this call to zip? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: iPhoto '08 "auto import" verb
  • Next by Date: Re: Is there a shell tool to find folders greater than a given size?
  • Previous by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Next by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread