• 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: bin/sh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bin/sh


  • Subject: Re: bin/sh
  • From: Kurt Revis <email@hidden>
  • Date: Thu, 21 Mar 2002 18:48:53 -0800

On Thursday, March 21, 2002, at 06:14 PM, John Blackburn wrote:

I've just accidently obliterated my /bin/sh. According to <http://www.mit.edu/people/wsanchez/papers/USENIX_2000/>, this will prevent me from even booting properly.

Anyone know where I can download a new copy of this file for Mac OS X 10.1.3?

This is off-topic for this list, but:

As of 10.1.3, /bin/sh is exactly the same as /bin/zsh. So just copy /bin/zsh to /bin/sh. You could also make a hard link (man ln for details), but apparently that isn't the way that things are installed by default (*). You might also want to set the permissions as seen below.

% ls -li /bin/sh /bin/zsh
32306 -r-xr-xr-x 1 root wheel 449616 Jan 29 12:01 /bin/sh*
32436 -rwxr-xr-x 1 root wheel 449616 Jan 29 12:01 /bin/zsh*


* I don't really understand how hard links are implemented on HFS+, so I don't know if the fact that these two files are shown as having different inode numbers means what I think it means.

--
Kurt Revis
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >bin/sh (From: John Blackburn <email@hidden>)

  • Prev by Date: Re: bin/sh
  • Next by Date: Re: Does NSSound not work in a Unix tool? - SOLUTION
  • Previous by thread: Re: bin/sh
  • Next by thread: Implementing toobar's delegate method as controller's category: drawback?
  • Index(es):
    • Date
    • Thread