Subject: ksh93 anyone?
To: None <netbsd-users@netbsd.org>
From: Jerry A! <jerry@thehutt.org>
List: netbsd-users
Date: 06/19/2002 12:04:49
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Is anyone out there using AT&T's ksh93 successfully?  I'm running into
some problems that I can't explain.  It appears as though function
definitions via "function foo {}" and "set -h/set -o trackall" cause
ksh93 to go all haywire.

I've built both ksh93 n- (2002-06-14) and ksh93 m+ (2002-03-17) and am
seeing the exact same issues.  I've even grabbed the precompiled
binaries from AT&T's website, on the off chance that I borked something
up.  No dice, same probems.  8(

For anyone that can help, I'm attaching my .profile and .env file to
this message.  I don't believe that they are incorrect, as everything
works correctly under FreeBSD, Linux and Solaris (albeit with $PATH
changes).

        --Jerry

Open-Source software isn't a matter of life or death...
...It's much more important than that!

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=".profile"

# $Id: .profile,v 1.4 2002/06/18 13:48:43 jerry Exp $

# set environment
set -o allexport
PATH=${HOME}/bin
PATH+=:/usr/local/bin:/usr/local/sbin
PATH+=:/usr/bin:/usr/sbin:/bin:/sbin
PATH+=:/usr/X11R6/bin
MANPATH=/usr/local/man
MANPATH+=:/usr/local/lib/perl5/5.6.1/man
MANPATH+=:/usr/share/man:/usr/X11R6/man
CDPATH=.:${HOME}:${HOME}/stuff:${HOME}/lib
MAILPATH=${HOME}/mail/.maillog?"You have new mail"
ENV=${HOME}/.env
EDITOR=$(whence vim)
PAGER=$(whence less)
VISUAL=$(whence vim)
NAME='Jerry A!'
ORGANIZATION='Broken Toys Unlimited'
CVS_RSH='ssh'
CVSUMASK='0077'
RSYNC_RSH='ssh'
LESS='-icq'
LESSOPEN='lessopen %s'
LESSCLOSE='lessclose %s %s'
set +o allexport


# start ssh agent and add keys
skill -n ssh-agent > /dev/null 2>&1

if [ $? != "0" ]; then
    eval `ssh-agent -s` > /dev/null 2>&1
    ssh-add
fi


# stuff to run on exit
trap 'ssh-agent -k > /dev/null 2>&1; clear' EXIT

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=".env"

# $Id: .env,v 1.2 2002/06/14 07:14:26 jerry Exp $

# define functions
function f { finger $* | less -+c -e; }
function ll { ls -al $@ | less -+c -EX; }


# define aliases
alias bye='exit'
alias ftp='lftp'
alias mutt='TERM=vt100 mutt -n'
alias vi=${EDITOR}
alias u='users'


# define sudo aliases
alias halt='sudo halt -p'
alias reboot='sudo reboot'
alias su='sudo -s'


# set resources
ulimit -s 8192
ulimit -c 0
umask 0077


# set shell characteristics
set -o noclobber
set -o notify
set -o trackall
set -o vi


# setup terminal
stty erase '^h'


# set xterm title
case ${TERM} in
    xterm | rxvt)
        _titlebar=$'\e]0;$(hostname -s):${PWD}\a'
        ;;
    *)
        ;;
esac

# set prompt and modify env based on uid
case $(id -u) in
    0)
        _prompt='$(hostname -s)#'
        PATH+=:/root/bin
        umask 0022
        ;;
    *)
        _prompt=$'\e[7m$(hostname -s)\e[0m[$(date +%H:%M)]'
        ;;
esac

PS1="${_titlebar}$'\r'${_prompt} "

--KsGdsel6WgEHnImy--