/bin/bash vs /bin/sh
Why are there two binaries for bash (a.k.a. sh)? Know the differences between bash and sh but bash is supposed to be mostly sh compatible when it is invoked as sh. So why are there two separate binaries of different sizes?
dkelly@Clumsy {116} ls -li `which sh`
7096160 -r-xr-xr-x 1 root wheel 1346624 Jun 24 2010 /bin/sh*
dkelly@Clumsy {117} ls -li /bin/bash
7096159 -rwxr-xr-x 1 root wheel 1346544 Jun 24 2010 /bin/bash*
dkelly@Clumsy {118} sh --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
dkelly@Clumsy {119} bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
dkelly@Clumsy {120} uname -a
Darwin Clumsy.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Mac Pro, Mac OS X (10.6.8)