[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Autoconf build targets



On Mon, May 20, 2002 at 02:59:18PM -0400, Nathan Hawkins wrote:
> 
> You are correct. FreeBSD has it's version of the same shell in /bin/sh. 
> The Debian ash package is based on an old version of NetBSD's sh.
> 
> Unfortunately, Debian installs /bin/sh as a symlink to /bin/bash. 
> Supposedly, /bin/sh is supposed to be "a Posix-compatible shell," but in 
> practice Debian sources and scripts may fail when /bin/sh is changed.

/bin/sh can only be a POSIX-compliant shell, and any of them. POSIX-compliant
shells include bash and ash but not csh or tcsh IIRC

Any package in Debian assuming /bin/sh is Bash or any particular shell
is broken with a serious bug. see Policy 11.4.

Bash is POSIX-compliant with some extensions, if it fails to process a
particular script then that script is using non-POSIX extensions of
another shell. (assuming nor bash or the script have bugs)

So if you have a script that makes use of ash non-POSIX extensions
(as it seems to be the case), just use /bin/ash as interpreter.

cheers,

-- 
Robert Millan

"5 years from now everyone will be running
free GNU on their 200 MIPS, 64M SPARCstation-5"

              Andrew S. Tanenbaum, 30 Jan 1992


-- 
To UNSUBSCRIBE, email to debian-bsd-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: