1 1.19 itojun #!/bin/sh - 2 1.29 kre # $NetBSD: builtins.def,v 1.29 2024/10/09 13:43:32 kre 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.28 kre # The -h flag (no history) specifies that this command is to be excluded 42 1.28 kre # from systems 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.28 kre bltincmd -u command # MUST be first 49 1.28 kre aliascmd -u alias 50 1.19 itojun bgcmd -j -u bg 51 1.19 itojun breakcmd -s break -s continue 52 1.19 itojun cdcmd -u cd chdir 53 1.19 itojun dotcmd -s . 54 1.27 kre echocmd -u echo 55 1.19 itojun evalcmd -s eval 56 1.19 itojun execcmd -s exec 57 1.19 itojun exitcmd -s exit 58 1.19 itojun expcmd exp let 59 1.19 itojun exportcmd -s export -s readonly 60 1.19 itojun falsecmd -u false 61 1.28 kre fdflagscmd fdflags 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.27 kre hashcmd -u hash 66 1.28 kre histcmd -h -u fc 67 1.28 kre inputrc inputrc 68 1.19 itojun jobidcmd jobid 69 1.19 itojun jobscmd -u jobs 70 1.28 kre killcmd -u kill # mandated by posix for 'kill %job' 71 1.19 itojun localcmd local 72 1.23 joerg #ifndef TINY 73 1.27 kre printfcmd -u printf 74 1.20 christos #endif 75 1.19 itojun pwdcmd -u pwd 76 1.19 itojun readcmd -u read 77 1.19 itojun returncmd -s return 78 1.19 itojun setcmd -s set 79 1.19 itojun setvarcmd setvar 80 1.19 itojun shiftcmd -s shift 81 1.26 kre #ifndef SMALL 82 1.26 kre specialvarcmd specialvar 83 1.29 kre suspendcmd -j suspend 84 1.26 kre #endif 85 1.28 kre testcmd -u test -u [ 86 1.19 itojun timescmd -s times 87 1.19 itojun trapcmd -s trap 88 1.19 itojun truecmd -s : -u true 89 1.27 kre typecmd -u type 90 1.28 kre ulimitcmd -u ulimit 91 1.19 itojun umaskcmd -u umask 92 1.19 itojun unaliascmd -u unalias 93 1.19 itojun unsetcmd -s unset 94 1.19 itojun waitcmd -u wait 95 1.21 seb wordexpcmd wordexp 96 1.28 kre 97 1.19 itojun #newgrp -u newgrp # optional command in posix 98 1.27 kre #exprcmd -u expr # not currently built in, but could be 99 1.19 itojun 100 1.25 kre #ifdef DEBUG 101 1.25 kre debugcmd debug 102 1.25 kre #endif 103