Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog broken after call of NSTask and setStandardError



Hello altogether,

thank you very much for your input! It was very helpful. As Hamish suggested I have tried to use another shell, tcsh instead of bash, and suprisingly the problem vanished! The console output remains intact with this script

#!/bin/tcsh
echo hello

and breaks with this shell script

#!/bin/bash
echo hello

But I don't know why... Is this worth a bug report? Or is there a way to keep bash from breaking the console output?
Oliver



----- Original Message ----- From: "Hamish Allan" <email@hidden>
To: "Oliver Siemoneit" <email@hidden>
Cc: <email@hidden>
Sent: Thursday, January 17, 2008 2:24 AM
Subject: Re: NSLog broken after call of NSTask and setStandardError



On Jan 17, 2008 12:11 AM, Oliver Siemoneit <email@hidden> wrote:

Is there an explanation for this? Or am I doing something wrong?

Not sure why it's happening, but the first thing I'd try would be something other than bash, e.g.,

#!/usr/bin/python -u
print 'hello'

Hamish


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSLog broken after call of NSTask and setStandardError (From: "Oliver Siemoneit" <email@hidden>)
 >Re: NSLog broken after call of NSTask and setStandardError (From: "Hamish Allan" <email@hidden>)
 >Re: NSLog broken after call of NSTask and setStandardError (From: "Oliver Siemoneit" <email@hidden>)
 >Re: NSLog broken after call of NSTask and setStandardError (From: "Hamish Allan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.