• 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: Using pathnames with special characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using pathnames with special characters


  • Subject: Re: Using pathnames with special characters
  • From: Cryx <email@hidden>
  • Date: Wed, 1 May 2002 21:04:49 -0500

On Wednesday, May 1, 2002, at 05:03 AM, Chris Ridd wrote:
If you're using system() then the passed string is interpreted by sh, and
so you need to look at sh's quoting rules. (Hint: replace \ with \\,
replace " with \" and surround each argument with " characters.)

That's very bad advice, as $'s will still interpolate. If you are ever tempted to call system or popen -- don't. Always avoid the shell and use fork, exec family, and pipes instead.

The iTunes installer fiasco was the perfect example of the evils of using shell for production work.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Using pathnames with special characters
      • From: Chris Ridd <email@hidden>
References: 
 >Re: Using pathnames with special characters (From: Chris Ridd <email@hidden>)

  • Prev by Date: Default Button and NSTextView Problem
  • Next by Date: How to select on a table with a control+click (right mouse click)
  • Previous by thread: Re: Using pathnames with special characters
  • Next by thread: Re: Using pathnames with special characters
  • Index(es):
    • Date
    • Thread