Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2012 18:01:13 GMT
From:      Rob Windsor <windsor@warthog.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/168140: pdksh install munges ksh93 entry in /etc/shells
Message-ID:  <201205191801.q4JI1Dw3057596@red.freebsd.org>
Resent-Message-ID: <201205191810.q4JIA1PH058740@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         168140
>Category:       ports
>Synopsis:       pdksh install munges ksh93 entry in /etc/shells
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 19 18:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Rob Windsor
>Release:        9.0p1
>Organization:
>Environment:
FreeBSD atlas 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Install ksh93
$ cat /etc/shells
# $FreeBSD: release/9.0.0/etc/shells 59717 2000-04-27 21:58:46Z ache $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/ksh93


Now install pdksh
$ cat /etc/shells
# $FreeBSD: release/9.0.0/etc/shells 59717 2000-04-27 21:58:46Z ache $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/ksh

>How-To-Repeat:
uninstall pdksh
uninstall ksh93
clean up /etc/shells (if needed)
install ksh93
install pdksh
cat /etc/shells
>Fix:
update line in ports/shells/pdksh/Makefile that does @(${GREP} -v ${PREFIX}/bin/ksh /etc/shells.bak ... to something like ${PREFIX}/bin/ksh\$

(test how you escape $ for functionality, don't use above example verbatum)

>Release-Note:
>Audit-Trail:
>Unformatted:



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