OK.

But without the simple quotes, it also fails.

With the quotes, the error is
/bin/bash: pico /Users/colas/myfile.txt: No such file or directory
Without the quotes, the error is
Error opening terminal: unknown.

Thanks!
Le Lundi 14 avril 2014 16h19, Jerry Krinock <je...@ieee.org> a écrit :
 
From documentation of -[NSTask setArguments:] :

"The strings in arguments do not undergo shell expansion, so you do not need to 
do special quoting”

I don’t know what they mean by “special”, but anyhow, the ‘ ' you put around 
your last argument will be passed to your tool and cause it to fail.
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to