New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - Accidentally deleted /bin/sh


Post Reply New Thread Subscribe

 
Thread Tools
tixastronauta

 
Member Since: May 10, 2009
Posts: 3
tixastronauta is on a distinguished road

tixastronauta is offline
Hi folks!

First of all I'd like to say that this is my first post on mac-forums and that I am new to the mac world. I must say I'm really delighted with Mac OS!

I've played around a bit with Linux before using Mac OS, so I was scripting a shell script and I wanted to make it executable everywhere. While doing so, I accidentally deleted the /bin/sh ... I managed to replace my original sh with another from a friend with a similar macbook but it is a bit slower then my previous one...

My question: Is it possible to re-compile another sh that suits my machine?

Thank you very much for your time!

Best,
~tix
QUOTE Thanks
PowerBookG4

 
PowerBookG4's Avatar
 
Member Since: Jan 08, 2005
Location: New Jersey
Posts: 6,190
PowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud of
Mac Specs: Mac Pro 8x3.0ghz 12gb ram 8800GT , MBP 2.16 2GB Ram 17 inch.

PowerBookG4 is offline
I would just delete your friends, then reinstall os x onto your system over your current install.

My Website
Blog
I love my hosting company!
I was on the M-F honor roll for Febuary:2006
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,314
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.2-MacMini3,1:10.9.2-iPhone6,1:7.1

XJ-linux is offline
Restore it from the backup of /bin/sh you must have made before doing this. No worries.
QUOTE Thanks
tixastronauta

 
Member Since: May 10, 2009
Posts: 3
tixastronauta is on a distinguished road

tixastronauta is offline
@PowerBookG4: That's a very drastic solution I hope I can find an easiest solution

@XJ-linux: I didn't do any backup at all.. Of course after that I started using the Time Machine - just in case I mess up again


Anyone got another solution?

Thanks
QUOTE Thanks
DarkestRitual

 
Member Since: Apr 09, 2009
Location: Ithaca NY
Posts: 2,073
DarkestRitual is just really niceDarkestRitual is just really niceDarkestRitual is just really niceDarkestRitual is just really nice
Mac Specs: 13 inch alMacBook 2GHz C2D 4G DDR3, 1.25GHz G4 eMac

DarkestRitual is offline
*face palm*

Doh!
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 37,139
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, iPhone 4, 3 iPods, OS X 10.9.2

chscag is offline
Quote:
I've played around a bit with Linux before using Mac OS, so I was scripting a shell script and I wanted to make it executable everywhere. While doing so, I accidentally deleted the /bin/sh ... I managed to replace my original sh with another from a friend with a similar macbook but it is a bit slower then my previous one...

My question: Is it possible to re-compile another sh that suits my machine?
Since reinstalling is not something you want to do, the only other solution would be to find the same "sh" file to replace the one you accidently deleted.

Perhaps if you told us the exact model of your MacBook and which operating system you're currently using, someone would be kind enough to send you a copy via private email. The file is only 1.1 MB and could be attached.

Regards.
QUOTE Thanks
tixastronauta

 
Member Since: May 10, 2009
Posts: 3
tixastronauta is on a distinguished road

tixastronauta is offline
Quote:
Originally Posted by chscag View Post
Since reinstalling is not something you want to do, the only other solution would be to find the same "sh" file to replace the one you accidently deleted.

Perhaps if you told us the exact model of your MacBook and which operating system you're currently using, someone would be kind enough to send you a copy via private email. The file is only 1.1 MB and could be attached.

Regards.
I have a white MacBook 2.4GHz Intel Core 2 Duo running Mac OS X 10.5.6.

Thanks for the tip!

Is anyone kind enough to send me the sh? Thanks in advance!
QUOTE Thanks

Post Reply New Thread Subscribe


« icons on the top right were gone | USB Kernel Panic »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
accidentally deleted my domain Jawbone Web Design and Hosting 4 02-07-2009 10:19 AM
I accidentally deleted hidden files HELP!! foxie4 OS X - Operating System 2 09-29-2008 12:25 AM
Accidentally deleted my "web.mac.com" Welcome Carleen Switcher Hangout 2 05-19-2008 01:24 AM
Accidentally Deleted Network Icon AJArend OS X - Operating System 3 08-22-2007 03:52 PM
crap accidentally deleted something! terpfan Apple Notebooks 15 11-04-2004 10:28 PM

All times are GMT -4. The time now is 05:43 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?