• 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: RegExps in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RegExps in AS


  • Subject: Re: RegExps in AS
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 22 Feb 2005 15:06:28 -0500

On Feb 21, 2005, at 7:23 PM, Andrew Oliver wrote:

Q: How long can my command be, really?

A: Calling do shell script creates a new sh process, and is therefore subject
to the system's normal limits on passing data to new processes: the arguments
(in this case, the text of your command plus about 40 bytes of overhead) and
any environment variables may not be larger than NCARGS, which is currently
65,536 bytes.

64K is a pretty meaty command line.

That part of the note is out of date -- it's actually even meatier than that. (Well, may be, depending on your OS version.) To get the answer for your system, say 'do shell script "sysctl kern.argmax"' -- in Panther, you'll get 262144, or 256K.



--Chris Nebel AppleScript Engineering _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: RegExps in AS (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Finder file rename confusion
  • Next by Date: Re: Finder file rename confusion
  • Previous by thread: Re: RegExps in AS
  • Next by thread: Re: RegExps in AS
  • Index(es):
    • Date
    • Thread