#!/usr/bin/psh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/bin/ksh/exec-builtin.sh 1.3 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1993,1995 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)36 1.3 src/bos/usr/bin/ksh/exec-builtin.sh, cmdksh, bos720 2/26/07 03:08:28 # # COMPONENT_NAME: (CMDKSH) Korn Shell # # FUNCTIONS: # # ORIGINS: 27 # # -- ( when # combined with the aggregated modules for this product) # OBJECT CODE ONLY SOURCE MATERIALS # (C) COPYRIGHT International Business Machines Corp. 1993,2007 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # # This shell script gets installed in /usr/bin to provide an exec()-able # version of certain shell builtins: # alias command getopts umask # bg fc jobs unalias # cd fg read wait # hash type ulimit # # These are also builtins, but already have historical version in /usr/bin: # false kill newgrp true # command=`/usr/bin/basename $0` # Invoke the ksh builtin if [ "$command" = "type" ] then whence -v "$@" elif [ "$command" = "hash" ] then alias -t - "$@" else $command "$@" fi