Re: NSTask and piped commands
Re: NSTask and piped commands
- Subject: Re: NSTask and piped commands
- From: Alastair Houghton <email@hidden>
- Date: Tue, 18 May 2010 21:19:56 +0100
On 18 May 2010, at 20:48, Stephen J. Butler wrote:
> On Tue, May 18, 2010 at 2:33 PM, appledev <email@hidden> wrote:
>> I dont want to use a call to a bash script, because of sneaking in bad commands.
>> But how should I handle this?
>
> That's only a real concern when you put user supplied data into the
> command you're running. But I don't see you doing that here... you're
> just using bash to parse the otput of some unix command.
Well, you might have to worry about some environment variables also. IFS could be an issue, for instance. Best not to use the shell from code if you can help it.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden