From owner-freebsd-bugs Sun Apr 6 03:01:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA12685 for bugs-outgoing; Sun, 6 Apr 1997 03:01:45 -0700 (PDT) Received: from dutton2.it.siu.edu (dutton2.it.siu.edu [131.230.2.129]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA12676 for ; Sun, 6 Apr 1997 03:01:41 -0700 (PDT) Received: by dutton2.it.siu.edu (5.x/SMI-SVR4) id AA02461; Sun, 6 Apr 1997 05:21:47 -0500 Date: Sun, 6 Apr 1997 05:21:47 -0500 From: jimd@dutton2.it.siu.edu (Jim Dutton) Message-Id: <9704061021.AA02461@dutton2.it.siu.edu> To: freebsd-bugs@freebsd.org Subject: pdksh-5.2.12 bombs /bin/sh sometimes? Content-Type: X-sun-attachment Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Charset: us-ascii X-Sun-Content-Lines: 6 Under FreeBSD-2.2-SNAP with the same version of pdksh, I used to use a .kshrc like the following, and never encountered any problems. Under FreeBSD-3.0-SNAP, this same script does something that causes future invocations of /bin/sh to core dump? Using pdksh withOUT this rc script does NOT cause /bin/sh to dump, so it is specific to this script, which as I mentioned earlier, worked just fine under FreeBSD-2.2. ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: .kshrc X-Sun-Charset: us-ascii X-Sun-Content-Lines: 19 case $0 in sh) ;; ksh|-ksh|su|-su) if [[ $username = "" ]] then username=$(id -un) hname=$(hostname -s) PS1="$hname/$username > " PS2="$hname/$username >> " PS3="$hname/$username >>> " PS4="$hname/$username >>>> " set -o ignoreeof set -o vi alias ll="ls -l" alias dir="ls -l" stty kill ^x erase ^? cd ~ fi;; esac