Andrew -
not the same binary...

$ ls -i /bin/{,ba}sh
25299 /bin/bash 25300 /bin/sh
$ sum !$
sum /bin/{,ba}sh
1049 1316 /bin/sh
22810 1315 /bin/bash

On 26/09/14 11:59 PM, Andrew McN wrote:
>
> I'm not surprised that Macs have bash installed, but is /bin/sh equal to
> bash, or is it something else?
>
> Andrew McNaughton

and even different sizes
$ ls -l !$
ls -l /bin/{,ba}sh
-r-xr-xr-x  1 root  wheel  1346544 15 Feb  2010 /bin/bash
-r-xr-xr-x  1 root  wheel  1346624 15 Feb  2010 /bin/sh

but

$ /bin/sh --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
$ /bin/bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.

cheers,
Douglas
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to