Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2005 21:18:17 +0200
From:      dick hoogendijk <dick@nagual.st>
To:        fbsdq <questions@freebsd.org>
Subject:   Re: Xprt
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20 Sep 2005 14:56:48 -0400
Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> wrote:

> dick hoogendijk <dick@nagual.st> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920211817.28f3b36e.dick>