/bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier

Barrie Stott zen146410 at zen.co.uk
Fri Oct 10 08:06:27 PDT 2014


On 10 Oct 2014, at 15:27, Brandon Allbery wrote:

> That said, 10.6 being unsupported by Apple, it is possible that your best bet is to copy /bin/bash to /bin/bash.apple and then copy MacPorts' bash to /bin/bash. (But beware, if you remove MacPorts in the future your /bin/bash will break; copy the saved one back first.)
> 
> -- 
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at gmail.com                                  ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

I've done that and I've doe something similar with /bin/sh as well. Surprisingly, I found original /bin/bash and /bin/sh different. The new stuff is:
-rwxr-xr-x  1 root  wheel  1893232 10 Oct 15:43 /bin/bash
-rwxr-xr-x  1 root  wheel  1346544 15 Feb  2010 /bin/bash.apple
-r-xr-xr-x  1 root  wheel  1893232 10 Oct 16:01 /bin/sh
-r-xr-xr-x  1 root  wheel  1346624 15 Feb  2010 /bin/sh.apple

I'm very grateful for your help.

Barrie.



More information about the macports-users mailing list