Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
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