• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script with administrator privileges & shell commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: do shell script with administrator privileges & shell commands (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Perl or Applescript w/ Excel
  • Next by Date: Re: Perl or Applescript w/ Excel
  • Previous by thread: Re: do shell script with administrator privileges & shell commands
  • Next by thread: Re: do shell script with administrator privileges & shell commands
  • Index(es):
    • Date
    • Thread