[Sc-devel] unixCmd exit code printing

Tom Hall scth at ludions.com
Fri Jul 27 11:32:23 PDT 2007


Hello All

unlike the default behaviour of a shell, unixCmd prints the exit code  
of the process in the post window (usually RESULT = 0). This can clog  
up the window the if a large number of commands are being executed.

Could we easily have a flag to turn off this posting behaviour?  
Something like,

"ls".unixCmd(printExitCode: false)

The printing is called by line 129 in SuperCollider3/Source/lang/ 
LangPrimSource/PyrUnixPrim.cpp

	post("RESULT = %d\n", res);

If a flag is not a bad idea, could someone who knows C possibly  
implement this?

The context is a little SC String method to link SC to the OSX UNIX  
utility BigHonkingText
details at www.ludions.com/sc/

Regards

Tom




More information about the Sc-devel mailing list