On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo <[EMAIL PROTECTED]> wrote: > Just curious why the recommendation against system()?
1) There's no need for it here. Why launch /bin/sh just to launch /bin/rm, when you can call unlink(2) yourself? 2) In this case, system(3) will launch a shell *as root*. It's almost always preferable to avoid this. 3) Doing anything involving arguments is always a tricky subject, because of Unicode. 4) Invoking shells (through use of system(3) in particular) is typically a red flag. It's usually indicative of a lack of knowledge of the environment. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]