Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Development (http://www.linux-archive.org/ubuntu-development/)
-   -   dash, getconf and a POSIX sh (http://www.linux-archive.org/ubuntu-development/8440-dash-getconf-posix-sh.html)

Jim Lowe 11-25-2007 01:28 AM

dash, getconf and a POSIX sh
 
Making /bin/sh be 'dash' is fine except that (because
'dash' is a mere aspiring POSIX shell) the following
method to locate the POSIX shell is broken because it resolves
back to '/bin/dash'.

PATH=`getconf PATH` which sh

To fix this you may have to have a new directory,
for example, /usr/posix/bin, that contains 'sh' as a symlink to
/bin/bash, then make `getconf PATH` return /usr/posix/bin:/bin/:/usr/bin

Now "PATH=`getconf PATH` which sh" will be '/bin/bash' and you can
tell everyone how to find a POSIX shell on an Ubuntu system

For more backup on this
See http://www.opengroup.org/platform/resolutions/bwg2000-004.html

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel

Marius Gedminas 11-29-2007 04:16 PM

dash, getconf and a POSIX sh
 
On Sat, Nov 24, 2007 at 09:28:17PM -0500, Jim Lowe wrote:
> Making /bin/sh be 'dash' is fine except that (because
> 'dash' is a mere aspiring POSIX shell)

How so? dash claims to be fully POSIX compliant. If you found
something missing, please report it as a bug.

Marius Gedminas
--
Science is to computer science as hydrodynamics is to plumbing.
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


All times are GMT. The time now is 10:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.