On Jun 07, 2006, at 5:01 PM, Jonathan Johnson wrote:


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. 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)

sh exists on pretty much every Unix implementation so it is realy always relied on when writing scripts for Unix
It's an unusual Unix install that does not have it.

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

Check to see if foo/bar and out.txt are the exact same. I'm guessing that you'll notice that the line endings aren't the same anymore.

And this also explains why sometimes things will run in on one OS X install and not another.
If a person has the right .login, .profile, etc this would set them up
_______________________________________________
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