Home | History | Annotate | Line # | Download | only in sh
builtins.def revision 1.24.2.1
      1      1.19    itojun #!/bin/sh -
      2  1.24.2.1  pgoyette #	$NetBSD: builtins.def,v 1.24.2.1 2017/05/19 00:22:50 pgoyette Exp $
      3      1.19    itojun #
      4      1.19    itojun # Copyright (c) 1991, 1993
      5      1.19    itojun #	The Regents of the University of California.  All rights reserved.
      6      1.19    itojun #
      7      1.19    itojun # This code is derived from software contributed to Berkeley by
      8      1.19    itojun # Kenneth Almquist.
      9      1.19    itojun #
     10      1.19    itojun # Redistribution and use in source and binary forms, with or without
     11      1.19    itojun # modification, are permitted provided that the following conditions
     12      1.19    itojun # are met:
     13      1.19    itojun # 1. Redistributions of source code must retain the above copyright
     14      1.19    itojun #    notice, this list of conditions and the following disclaimer.
     15      1.19    itojun # 2. Redistributions in binary form must reproduce the above copyright
     16      1.19    itojun #    notice, this list of conditions and the following disclaimer in the
     17      1.19    itojun #    documentation and/or other materials provided with the distribution.
     18      1.19    itojun # 3. Neither the name of the University nor the names of its contributors
     19      1.19    itojun #    may be used to endorse or promote products derived from this software
     20      1.19    itojun #    without specific prior written permission.
     21      1.19    itojun #
     22      1.19    itojun # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     23      1.19    itojun # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     24      1.19    itojun # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     25      1.19    itojun # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     26      1.19    itojun # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     27      1.19    itojun # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     28      1.19    itojun # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29      1.19    itojun # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     30      1.19    itojun # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31      1.19    itojun # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     32      1.19    itojun # SUCH DAMAGE.
     33      1.19    itojun #
     34      1.19    itojun #	@(#)builtins.def	8.4 (Berkeley) 5/4/95
     35      1.19    itojun 
     36      1.19    itojun #
     37      1.19    itojun # This file lists all the builtin commands.  The first column is the name
     38      1.19    itojun # of a C routine.
     39      1.19    itojun # The -j flag specifies that this command is to be excluded from systems
     40      1.19    itojun # without job control.
     41      1.19    itojun # The -h flag specifies that this command is to be excluded from systems
     42      1.19    itojun # based on the SMALL compile-time symbol.
     43      1.19    itojun # The -s flag specifies that this is a posix 'special builtin' command.
     44      1.19    itojun # The -u flag specifies that this is a posix 'standard utility'.
     45      1.19    itojun # The rest of the line specifies the command name or names used to run
     46      1.19    itojun # the command.
     47      1.19    itojun 
     48      1.19    itojun bltincmd	-u command
     49      1.19    itojun bgcmd -j	-u bg
     50      1.19    itojun breakcmd	-s break -s continue
     51      1.19    itojun cdcmd		-u cd chdir
     52      1.19    itojun dotcmd		-s .
     53      1.19    itojun echocmd		echo
     54      1.19    itojun evalcmd		-s eval
     55      1.19    itojun execcmd		-s exec
     56      1.19    itojun exitcmd		-s exit
     57      1.19    itojun expcmd		exp let
     58      1.19    itojun exportcmd	-s export -s readonly
     59      1.19    itojun falsecmd	-u false
     60      1.19    itojun histcmd -h	-u fc
     61      1.19    itojun inputrc		inputrc
     62      1.19    itojun fgcmd -j	-u fg
     63      1.22       dsl fgcmd_percent -j	-u %
     64      1.19    itojun getoptscmd	-u getopts
     65      1.19    itojun hashcmd		hash
     66      1.19    itojun jobidcmd	jobid
     67      1.19    itojun jobscmd		-u jobs
     68      1.19    itojun localcmd	local
     69      1.23     joerg #ifndef TINY
     70      1.19    itojun printfcmd	printf
     71      1.20  christos #endif
     72      1.19    itojun pwdcmd		-u pwd
     73      1.19    itojun readcmd		-u read
     74      1.19    itojun returncmd	-s return
     75      1.19    itojun setcmd		-s set
     76      1.24  christos fdflagscmd	fdflags
     77      1.19    itojun setvarcmd	setvar
     78      1.19    itojun shiftcmd	-s shift
     79      1.19    itojun timescmd	-s times
     80      1.19    itojun trapcmd		-s trap
     81      1.19    itojun truecmd		-s : -u true
     82      1.19    itojun typecmd		type
     83      1.19    itojun umaskcmd	-u umask
     84      1.19    itojun unaliascmd	-u unalias
     85      1.19    itojun unsetcmd	-s unset
     86      1.19    itojun waitcmd		-u wait
     87      1.19    itojun aliascmd	-u alias
     88      1.19    itojun ulimitcmd	ulimit
     89      1.19    itojun testcmd		test [
     90      1.19    itojun killcmd		-u kill		# mandated by posix for 'kill %job'
     91      1.21       seb wordexpcmd	wordexp
     92      1.19    itojun #newgrp		-u newgrp	# optional command in posix
     93      1.19    itojun 
     94  1.24.2.1  pgoyette #ifdef	DEBUG
     95  1.24.2.1  pgoyette debugcmd	debug
     96  1.24.2.1  pgoyette #endif
     97  1.24.2.1  pgoyette 
     98      1.19    itojun #exprcmd	expr
     99