1.\" 2.\" Copyright (c) 1999 Sheldon Hearn 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\"
| 1.\" 2.\" Copyright (c) 1999 Sheldon Hearn 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\"
|
28.\" 29.Dd September 1, 1999 30.Dt BUILTIN 1 31.Os 32.Sh NAME 33.Nm builtin , 34.Nm alias , 35.Nm alloc , 36.Nm bg , 37.Nm bindkey , 38.Nm break , 39.Nm breaksw , 40.Nm builtins , 41.Nm case , 42.Nm cd , 43.Nm chdir , 44.Nm command , 45.Nm complete , 46.Nm continue , 47.Nm default , 48.Nm dirs , 49.Nm do , 50.Nm done , 51.Nm echo , 52.Nm echotc , 53.Nm elif , 54.Nm else , 55.Nm end , 56.Nm endif , 57.Nm endsw , 58.Nm esac , 59.Nm eval , 60.Nm exec , 61.Nm exit , 62.Nm export , 63.Nm fc , 64.Nm fg , 65.Nm filetest , 66.Nm fi , 67.Nm for , 68.Nm foreach , 69.Nm getopts , 70.Nm glob , 71.Nm goto , 72.Nm hash , 73.Nm hashstat , 74.Nm history , 75.Nm hup , 76.Nm if , 77.Nm jobid , 78.Nm jobs , 79.Nm kill , 80.Nm limit , 81.Nm log , 82.Nm login , 83.Nm logout , 84.Nm ls-F , 85.Nm nice , 86.Nm nohup , 87.Nm notify , 88.Nm onintr , 89.Nm popd , 90.Nm printf , 91.Nm printenv , 92.Nm pushd , 93.Nm pwd , 94.Nm read , 95.Nm readonly , 96.Nm rehash , 97.Nm repeat , 98.Nm sched , 99.Nm set , 100.Nm setenv , 101.Nm settc , 102.Nm setty , 103.Nm setvar , 104.Nm shift , 105.Nm source , 106.Nm stop , 107.Nm suspend , 108.Nm switch , 109.Nm telltc , 110.Nm then , 111.Nm time , 112.Nm trap , 113.Nm type , 114.Nm ulimit , 115.Nm umask , 116.Nm unalias , 117.Nm uncomplete , 118.Nm unhash , 119.Nm unlimit , 120.Nm unset , 121.Nm unsetenv , 122.Nm until , 123.Nm wait , 124.Nm where , 125.Nm which , 126.Nm while 127.Nd shell builtin commands 128.Sh SYNOPSIS 129.Nm 130.Op Fl options 131.Op Ar args ... 132.Sh DESCRIPTION 133Shell builtin commands are commands that can be executed within the 134running shell's process. 135Note that, in the case of 136.Xr csh 1 137builtin commands, the command is executed in a subshell if it occurs as 138any component of a pipeline except the last. 139.Pp 140If a command specified to the shell contains a slash 141.Dq \&/ , 142the shell will not execute a builtin command, even if the last component 143of the specified command matches the name of a builtin command. 144Thus, while specifying 145.Dq Ic echo 146causes a builtin command to be executed under shells that support the 147builtin echo command, 148specifying 149.Dq Pa /bin/echo 150or 151.Dq Pa ./echo 152does not. 153.Pp 154While some builtin commands may exist in more than one shell, their 155operation may be different under each shell which supports them. 156Below is a table which lists shell builtin commands, the standard shells 157that support them and whether they exist as standalone utilities. 158.Pp 159Only builtin commands for the 160.Xr csh 1 161and 162.Xr sh 1 163shells are listed here. 164Consult the appropriate manual page for 165details on the operation of any given builtin command under those shells. 166Users of other shells will need to consult the documentation supplied 167with the other shells.
| 28.\" 29.Dd September 1, 1999 30.Dt BUILTIN 1 31.Os 32.Sh NAME 33.Nm builtin , 34.Nm alias , 35.Nm alloc , 36.Nm bg , 37.Nm bindkey , 38.Nm break , 39.Nm breaksw , 40.Nm builtins , 41.Nm case , 42.Nm cd , 43.Nm chdir , 44.Nm command , 45.Nm complete , 46.Nm continue , 47.Nm default , 48.Nm dirs , 49.Nm do , 50.Nm done , 51.Nm echo , 52.Nm echotc , 53.Nm elif , 54.Nm else , 55.Nm end , 56.Nm endif , 57.Nm endsw , 58.Nm esac , 59.Nm eval , 60.Nm exec , 61.Nm exit , 62.Nm export , 63.Nm fc , 64.Nm fg , 65.Nm filetest , 66.Nm fi , 67.Nm for , 68.Nm foreach , 69.Nm getopts , 70.Nm glob , 71.Nm goto , 72.Nm hash , 73.Nm hashstat , 74.Nm history , 75.Nm hup , 76.Nm if , 77.Nm jobid , 78.Nm jobs , 79.Nm kill , 80.Nm limit , 81.Nm log , 82.Nm login , 83.Nm logout , 84.Nm ls-F , 85.Nm nice , 86.Nm nohup , 87.Nm notify , 88.Nm onintr , 89.Nm popd , 90.Nm printf , 91.Nm printenv , 92.Nm pushd , 93.Nm pwd , 94.Nm read , 95.Nm readonly , 96.Nm rehash , 97.Nm repeat , 98.Nm sched , 99.Nm set , 100.Nm setenv , 101.Nm settc , 102.Nm setty , 103.Nm setvar , 104.Nm shift , 105.Nm source , 106.Nm stop , 107.Nm suspend , 108.Nm switch , 109.Nm telltc , 110.Nm then , 111.Nm time , 112.Nm trap , 113.Nm type , 114.Nm ulimit , 115.Nm umask , 116.Nm unalias , 117.Nm uncomplete , 118.Nm unhash , 119.Nm unlimit , 120.Nm unset , 121.Nm unsetenv , 122.Nm until , 123.Nm wait , 124.Nm where , 125.Nm which , 126.Nm while 127.Nd shell builtin commands 128.Sh SYNOPSIS 129.Nm 130.Op Fl options 131.Op Ar args ... 132.Sh DESCRIPTION 133Shell builtin commands are commands that can be executed within the 134running shell's process. 135Note that, in the case of 136.Xr csh 1 137builtin commands, the command is executed in a subshell if it occurs as 138any component of a pipeline except the last. 139.Pp 140If a command specified to the shell contains a slash 141.Dq \&/ , 142the shell will not execute a builtin command, even if the last component 143of the specified command matches the name of a builtin command. 144Thus, while specifying 145.Dq Ic echo 146causes a builtin command to be executed under shells that support the 147builtin echo command, 148specifying 149.Dq Pa /bin/echo 150or 151.Dq Pa ./echo 152does not. 153.Pp 154While some builtin commands may exist in more than one shell, their 155operation may be different under each shell which supports them. 156Below is a table which lists shell builtin commands, the standard shells 157that support them and whether they exist as standalone utilities. 158.Pp 159Only builtin commands for the 160.Xr csh 1 161and 162.Xr sh 1 163shells are listed here. 164Consult the appropriate manual page for 165details on the operation of any given builtin command under those shells. 166Users of other shells will need to consult the documentation supplied 167with the other shells.
|