Re: 'do shell script'-bug?
Re: 'do shell script'-bug?
- Subject: Re: 'do shell script'-bug?
- From: garbanzito <email@hidden>
- Date: Sat, 12 Jan 2002 21:35:05 -0700
at 2002 01 11, 23:09 -0800, they whom i call Christopher Nebel wrote:
This is not a bug, but it's also not well documented.
When you tell Terminal to do something, it does it using your
preferred shell (tcsh, unless you've changed it) and complete login
environment. When you use "do shell script", it always uses sh, and
some environment bits are different.
helpful information, but in actuality it doesn't even use sh
-- it looks like it uses execv or similar to execute the
command (the limited path, /usr/bin:/bin:~, is consistent
with this; "do shell script" is a bit of a misnomer).
analyze the output of
ps -auxwoppid
and note that the ps command you've just run is run by
root, (though whoami returns your user name), and that the
parent process (PPID) is the Script Editor (or similar).
there is no shell involved.
also notable is the fact that the process is run connected to /.
--
steve harley email@hidden