FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Development

 
 
LinkBack Thread Tools
 
Old 11-25-2007, 01:28 AM
Jim Lowe
 
Default 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
 
Old 11-29-2007, 04:16 PM
Marius Gedminas
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org