On Apr 4, 2008, at 2:56 PM, Nir Soffer wrote:
On Apr 4, 2008, at 23:20, Randall Meadows wrote:
NSArray *args = [NSArray arrayWithObjects:
@"-cf",
[NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath],
[NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath],
nil];
Try:
NSArray *args = [NSArray arrayWithObjects:@"-cf", tarFilePath,
plistPath, nil];
You don't need to quote anything you feed to NSTask. Your code is
equivalent to this wrong shell script:
tar -cf "\"tarFilePath\"" "\"plistPath\""
As I stated in my OP, I did try them unquoted, with the same result.
_______________________________________________
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]