Re: do shell script with administrator privileges & shell commands
Re: do shell script with administrator privileges & shell commands
- Subject: Re: do shell script with administrator privileges & shell commands
- From: garbanzito <email@hidden>
- Date: Wed, 14 Aug 2002 14:36:31 -0600
at 2002 08 14, 12:47 -0700, they whom i call Christopher Nebel wrote:
On Wednesday, August 14, 2002, at 12:18 PM, garbanzito wrote:
now, "do shell script" seems designed to:
a) spawn a shell process (actually /bin/zsh) ...
Actually, "do shell script" invokes /bin/sh. The tricky bit is that
sh (at least in 10.1) is actually a link to /bin/zsh, which is able
to emulate sh. Keep this in mind before attempting to use anything
zsh-specific.
i knew sh was a link to zsh, but i hadn't noticed this
clarifying blurb in the zsh man page:
"Zsh tries to emulate sh or ksh when it is invoked as sh or
ksh respectively."
which i take to mean that zsh invokes sh compatibility mode
because it is invoked from the /bin/sh link, and it
wouldn't act the same if it were invoked as /bin/zsh
--
steve harley
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.