From owner-freebsd-questions@FreeBSD.ORG Tue Sep 20 19:17:03 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1571616A41F for ; Tue, 20 Sep 2005 19:17:03 +0000 (GMT) (envelope-from dick@nagual.st) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [82.74.2.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 846EC43D4C for ; Tue, 20 Sep 2005 19:17:01 +0000 (GMT) (envelope-from dick@nagual.st) Received: from pooh.nagual.st (pooh.nagual.st [192.168.11.22]) by nagual.st with esmtp; Tue, 20 Sep 2005 21:17:00 +0200 id 00000018.4330602C.00001AB9 Date: Tue, 20 Sep 2005 21:18:17 +0200 From: dick hoogendijk To: fbsdq Message-Id: <20050920211817.28f3b36e.dick@nagual.st> In-Reply-To: <44u0gfsh3j.fsf@be-well.ilk.org> References: <20050920201411.2914a331.dick@nagual.st> <44u0gfsh3j.fsf@be-well.ilk.org> Organization: de nagual X-Mailer: Sylpheed version 2.0.1 (GTK+ 2.6.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: Xprt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 19:17:03 -0000 On 20 Sep 2005 14:56:48 -0400 Lowell Gilbert wrote: > dick hoogendijk writes: > > > Yesterday I upgraded my xorg-printserver. Afterwards my Xprt would > > not start. Looking at /usr/X11R6/etc/rc.d/xprint.sh I did not have a > > POSIX-shell. Hmmm.. seems you need ksh or bash for xprint all > > of a sudden. A warning would have been nice. > > That script only requires a POSIX shell, and our standard /bin/sh > should work fine. I just tried it, and it does work for me. That's what I expected. But if you look into the script you'll see#!/bin/sh ############################################################################ # Force use of a POSIX conformant sh [ "$1" != "posix_sh_forced" -a -x /bin/ksh ] && exec /bin/ksh "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /bin/bash ] && exec /bin/bash --norc --noprofile "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /usr/local/bin/ksh ] && exec /usr/local/bin/ksh "$0" posix_sh_forced "$@" [ "$1" != "posix_sh_forced" -a -x /usr/local/bin/bash ] && exec /usr/local/bin/bash --norc --noprofile "$0" posix_sh_forced "$@" if [ "$1" != "posix_sh_forced" ] ; then echo "${0}: ## FATAL ERROR: No POSIX-shell found." 1>&2 exit 1 fi ####################################### As you can see, /bin/sh is NOT mentioned (and thus 'not found') Only ksh and bash seem to be supported. Strange.. Sure I can alter the startup script, but I'm not supposed to do this, am I? -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja