home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: sjg@zen.void.oz.au (Simon J. Gerraty)
- Subject: v29i089: pdksh - Public Domain Korn Shell, v4, Patch04
- Message-ID: <1992May11.053737.23385@sparky.imd.sterling.com>
- X-Md4-Signature: 0e19a932db72cd49d9f8eaa02bb08102
- Date: Mon, 11 May 1992 05:37:37 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: sjg@zen.void.oz.au (Simon J. Gerraty)
- Posting-number: Volume 29, Issue 89
- Archive-name: pdksh/patch04
- Environment: UNIX
- Patch-To: pdksh: Volume 25, Issue 47-55
-
- This patch fixes a couple of omissions from the recent update.
-
- It should be applied by changing directory to the root
- of the source tree and using the command:
-
- patch -p0 < this_file
-
- The following is a complete list of patches to date.
-
- # PD ksh Version 4
- Prereq: 09-Nov-91
- Prereq: 10-Nov-91
- Prereq: 25-Nov-91
- Prereq: 25-Apr-92
- Prereq: 26-Apr-92
- *** PATCHDATES.old Sun Apr 26 10:21:49 1992
- --- PATCHDATES Mon Apr 27 17:14:57 1992
- ***************
- *** 4,6 ****
- --- 4,7 ----
- 25-Nov-91
- 25-Apr-92
- 26-Apr-92
- + 27-Apr-92
- *** bug-report.old Sat Apr 25 17:44:11 1992
- --- bug-report Mon Apr 27 16:52:40 1992
- ***************
- *** 2,8 ****
- Subject: [area]: [synopsis] [replace with actual area and short description]
-
- VERSION:
- ! PD KSH: 25-Nov-1991
- [Official patches will edit this line to indicate the patch level]
-
- MACHINE and OPERATING SYSTEM:
- --- 2,8 ----
- Subject: [area]: [synopsis] [replace with actual area and short description]
-
- VERSION:
- ! PD KSH: 4.4 27-Apr-1992
- [Official patches will edit this line to indicate the patch level]
-
- MACHINE and OPERATING SYSTEM:
- *** etc/ksh.kshrc.old Sat Apr 25 17:44:12 1992
- --- etc/ksh.kshrc Mon Apr 27 17:09:41 1992
- ***************
- *** 15,29 ****
- # SEE ALSO:
- # $HOME/.kshrc
- #
- ! # AMENDED:
- ! # 91/11/18 19:25:39 (sjg)
- ! #
- ! # RELEASED:
- ! # 91/11/18 19:25:41 v2.5
- ! #
- ! # SCCSID:
- ! # @(#)ksh.kshrc 2.5 91/11/18 19:25:39 (sjg)
- ! #
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- --- 15,22 ----
- # SEE ALSO:
- # $HOME/.kshrc
- #
- ! # RCSid:
- ! # $Id: ksh.kshrc,v 1.2 1992/04/27 07:09:28 sjg Exp $
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- ***************
- *** 47,56 ****
- tty=`tty`
- tty=`basename $tty`
-
- ! set -o $EDITOR
-
- - alias ls='ls -CF'
- - alias h='fc -l | more'
- # the PD ksh is not 100% compatible
- case "$KSH_VERSION" in
- *PD*) # PD ksh
- --- 40,47 ----
- tty=`tty`
- tty=`basename $tty`
-
- ! set -o ${FCEDIT:-$EDITOR}
-
- # the PD ksh is not 100% compatible
- case "$KSH_VERSION" in
- *PD*) # PD ksh
- ***************
- *** 86,91 ****
- --- 77,84 ----
- eval ilabel "$USER@$HOSTNAME"
- PS1=$PROMPT
- fi
- + alias ls='ls -CF'
- + alias h='fc -l | more'
- alias quit=exit
- alias cls=clear
- alias logout=exit
- *** etc/profile.old Sat Apr 25 17:40:40 1992
- --- etc/profile Mon Apr 27 17:10:16 1992
- ***************
- *** 11,25 ****
- # $HOME/.profile
- # /etc/ksh.kshrc
- #
- ! # AMENDED:
- ! # 91/11/08 23:02:21 (sjg)
- ! #
- ! # RELEASED:
- ! # 91/11/08 23:02:24 v2.7
- ! #
- ! # SCCSID:
- ! # @(#)profile 2.7 91/11/08 23:02:21 (sjg)
- ! #
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- --- 11,18 ----
- # $HOME/.profile
- # /etc/ksh.kshrc
- #
- ! # RCSid:
- ! # $Id: profile,v 1.2 1992/04/27 07:09:54 sjg Exp $
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- ***************
- *** 126,137 ****
- unset S E GROUP
- export LOCAL TTY PATH LOGNAME USER
-
- ! TTY=`tty`
- ! if [ $? -ne 0 ]; then
- ! # This trick appears not to work under BOS 2.00.45
- ! # so be careful of su - user in boot scripts.
- ! TTY=none
- ! else
- TTY=`basename $TTY`
- ORGANIZATION=""
- COPYRIGHT="Copyright (c) `date +19%y` $ORGANIZATION"
- --- 119,126 ----
- unset S E GROUP
- export LOCAL TTY PATH LOGNAME USER
-
- ! if [ -t 1 ]; then
- ! TTY=`tty`
- TTY=`basename $TTY`
- ORGANIZATION=""
- COPYRIGHT="Copyright (c) `date +19%y` $ORGANIZATION"
- ***************
- *** 145,155 ****
- export MAIL EMACSDIR MANPATH MAILPATH PAGER
-
- EDITOR=emacs
- !
- PROMPT="<$LOGNAME@$HOSTNAME>$ "
- PUBDIR=/usr/spool/uucppublic
- export PUBDIR
- [ -f /etc/profile.TeX ] && . /etc/profile.TeX
- fi
-
- # test (and setup if we are Korn shell)
- --- 134,147 ----
- export MAIL EMACSDIR MANPATH MAILPATH PAGER
-
- EDITOR=emacs
- ! FCEDIT=${EDITOR}
- !
- PROMPT="<$LOGNAME@$HOSTNAME>$ "
- PUBDIR=/usr/spool/uucppublic
- export PUBDIR
- [ -f /etc/profile.TeX ] && . /etc/profile.TeX
- + else
- + TTY=none
- fi
-
- # test (and setup if we are Korn shell)
- ***************
- *** 167,173 ****
- SHELL=/bin/sh
- fi
- PS1=$PROMPT
- ! export SHELL PS1 EDITOR PATH PROMPT HOSTNAME CDPATH
-
- ;;
- esac
- --- 159,165 ----
- SHELL=/bin/sh
- fi
- PS1=$PROMPT
- ! export SHELL PS1 EDITOR PATH PROMPT HOSTNAME CDPATH FCEDIT
-
- ;;
- esac
- ***************
- *** 185,190 ****
- --- 177,188 ----
- read tmpterm
- TERM=${tmpterm:-$defterm}
- ;;
- + esac
- + # set up desired tty modes
- + stty intr '^c'
- + case $TERM in
- + wy50) stty erase '^h';;
- + *) stty erase '^?';;
- esac
- # welcome first time users
- [ -r ${LOCAL}/etc/1stlogin.ann -a ! -f $HOME/... ] && \
- *** sh/jobs.c.old Mon Apr 27 16:44:24 1992
- --- sh/jobs.c Mon Apr 27 17:14:39 1992
- ***************
- *** 2,8 ****
- * Process and job control
- */
- #ifndef lint
- ! static char *RCSid = "$Id: jobs.c,v 1.3 1992/04/25 08:29:52 sjg Exp $";
- #endif
-
- /*
- --- 2,8 ----
- * Process and job control
- */
- #ifndef lint
- ! static char *RCSid = "$Id: jobs.c,v 1.4 1992/04/27 07:14:26 sjg Exp $";
- #endif
-
- /*
- ***************
- *** 101,106 ****
- --- 101,109 ----
- #else
- #define WAIT_T int
- #endif
- + #endif
- + #ifndef SA_RESTART
- + #define SA_RESTART 0
- #endif
-
- typedef struct Proc Proc;
- *** sh/patchlevel.h.old Mon Apr 27 16:44:28 1992
- --- sh/patchlevel.h Mon Apr 27 17:14:02 1992
- ***************
- *** 1,6 ****
- /*
- * PD KSH
- ! * $Id: patchlevel.h,v 4.3 1992/04/25 08:24:42 sjg Exp $
- */
- #define VERSION 4
- ! #define PATCHLEVEL 3
- --- 1,6 ----
- /*
- * PD KSH
- ! * $Id: patchlevel.h,v 4.4 1992/04/27 07:13:58 sjg Exp $
- */
- #define VERSION 4
- ! #define PATCHLEVEL 4
- *** sh/sigact.c.old Mon Apr 27 16:44:38 1992
- --- sh/sigact.c Sun Apr 26 21:25:21 1992
- ***************
- *** 60,69 ****
- *
- */
- #ifndef lint
- ! static char *RCSid = "$Id: sigact.c,v 1.2 1992/04/24 15:04:11 sjg Exp $";
- #endif
- /*
- * $Log: sigact.c,v $
- * Revision 1.2 1992/04/24 15:04:11 sjg
- * now compiles with cc
- *
- --- 60,72 ----
- *
- */
- #ifndef lint
- ! static char *RCSid = "$Id: sigact.c,v 1.3 1992/04/26 11:24:43 sjg Exp $";
- #endif
- /*
- * $Log: sigact.c,v $
- + * Revision 1.3 1992/04/26 11:24:43 sjg
- + * USE_SIGSET corrected in sigsuspend().
- + *
- * Revision 1.2 1992/04/24 15:04:11 sjg
- * now compiles with cc
- *
- ***************
- *** 261,267 ****
- sigsuspend(mask)
- sigset_t *mask;
- {
- ! #ifdef USE_SETSIG
- int sig = SIGCHLD; /* our default */
-
- /*
- --- 264,270 ----
- sigsuspend(mask)
- sigset_t *mask;
- {
- ! #ifdef USE_SIGSET
- int sig = SIGCHLD; /* our default */
-
- /*
-
- exit 0 # Just in case...
-