I am working on some bash shell scripting for a local login script and it works fine on Leopard and Snow Leopard but fails on Lion. I was curious if there was a place that listed the differences in bash on Lion?
|
Within bash, the command If your machines are up-to-date, they'll be running the same version. Make sure all the external programs used in the script are up-to-date too: the script may behave differently because one of these programs produces different output. You can watch what your script is doing more closely by running |
|||||
|
|
Assuming a SnowLeopard or Lion installation that has the latest software updates, the version of Bash is the same. On SnowLeopard you may have a 32bit compilation in some cases, whereas on Lion it is (by default) 64bit. The command (By the way sysadmins are almost never undead, despite the occasional appearance to the contrary. The description was added for dramatic effect, and no offence to sysadmins was intended. I offer my heartfelt apology to any actual undead sysadmins, and their families, and I urge them to grab a shotgun immediately and barricade the bedroom door, double tap to be sure.) |
|||

u="$(whoami)"; echo $uon 10.6 and 10.7, with the same result. Post the script source, that way you'll get decent answers. Also, to address your main question, the latest system upgrades for 10.7 and 10.6 will have the same version of bash anyway, ie.3.2.48(1)-release– Slomojo Nov 3 '11 at 23:06