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: Paul Berkowitz <email@hidden>
- Date: Sat, 01 Mar 2008 00:46:15 -0800
- Thread-topic: linebreak in a shell script; was Re: What's wrong with this call to zip?
On 2/29/08 6:06 PM, "Mark J. Reed" <email@hidden> wrote:
> 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.
For the general case, you can just get 'character id x of y as list' and
deal with it as a one- or two-item list, to be determined by your script.
The only bug in all this is the one that Shane pointed out, that
"text item delimiters" may match one part of a cluster, such as the "\r" in
"\r\n", but NOT the "\n". That's plain wrong.
--
Paul Berkowitz
_______________________________________________
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