Am 08.06.2006 um 01:01 schrieb Jonathan Johnson:

On Jun 7, 2006, at 5:25 PM, Stefan P. wrote:

A last non sarcastic question:

        What does RB's Shell class call?

If I'd know what's going on, I'm happy to write some
C sample code and prove ME or YOU wrong.

Let's keep the hostility down a bit.

Thx!

REALbasic, on Mac OS X, currently invokes /bin/sh with the "-c" option, passing in the user's input afterwards. This is done after a fork if using Asynchronous or Interactive mode. I'm not the engineer that wrote the code, but I assume that the reason for having "sh" execute the command is simply because it will setup a minimal environment to operate in and parse the command given properly. It is very likely that any of the shells (which we're using sh for no particular reason) will convert line endings such that the terminals won't have to grok them. A way to verify that this is happening is in the terminal to write:

/bin/sh -c "cat /foo/bar" > out.txt

Sorry, not verified. My sample file - which gets changed using the Shell
class - doesn't show up any difference using your method.

Even if I use gcc-4.0 as the input file, everything remains identical.

I might write a sample C app, which writes any byte value. But 80K gcc-4.0
is quite likely to have any byte values inside too.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to