On Thu, 05 Mar 2009 20:12:32 -0500 Bob Doolittle <[email protected]> wrote:
> I hope you don't mind me putting this back on the alias, but this is > significant. > It proves that Ubuntu (not Debian - my mistake) uses a different > version of "sh" than other distros (RHEL, SLES, and apparently > Debian). > > Anybody know the details here? What is the Ubuntu default sh? > Bob, can you (or someone else) help me with my confusion? The script in question, /etc/opt/SUNWut/gdm/SunRayInit/helpers/Xsetup starts with the line "#!/bin/ksh -p" So why is the version of /bin/sh important here? For a "default shell" script I would see the issue. Such scripts should conform to the POSIX standard in the Ubuntu/Debian world, since /bin/sh may be provided by any POSIX compatible shell, e.g., bash or dash. Older Debian installations or upgrade of older installations (like mine) use bash as default, new ones since Debian 5.0 (and Ubuntu already since 6.06) use dash, since it is leaner and faster. The default login shell is bash since it has more interactive capabilities. See <https://wiki.ubuntu.com/DashAsBinSh> which also mentions the function keyword as a POSIX incompatible "bashism". But the script in question is a designated ksh script and ksh accepts the function keyword. What do I miss here? Meik -- Meik Hellmund Mathematisches Institut, Uni Leipzig e-mail: [email protected] http://www.math.uni-leipzig.de/~hellmund _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
