Date: Sun, 6 Apr 1997 05:21:47 -0500 From: jimd@dutton2.it.siu.edu (Jim Dutton) To: freebsd-bugs@freebsd.org Subject: pdksh-5.2.12 bombs /bin/sh sometimes? Message-ID: <9704061021.AA02461@dutton2.it.siu.edu>
next in thread | raw e-mail | index | archive | help
---------- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9704061021.AA02461>