source: vendor/bash/3.1/builtins/colon.def

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 1.4 KB
Line 
1This file is colon.def, from which is created colon.c.
2It implements the builtin ":" in Bash.
3
4Copyright (C) 1987-2002 Free Software Foundation, Inc.
5
6This file is part of GNU Bash, the Bourne Again SHell.
7
8Bash is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 2, or (at your option) any later
11version.
12
13Bash is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License along
19with Bash; see the file COPYING. If not, write to the Free Software
20Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
21
22$PRODUCES colon.c
23
24$BUILTIN :
25$DOCNAME colon
26$FUNCTION colon_builtin
27$SHORT_DOC :
28No effect; the command does nothing. A zero exit code is returned.
29$END
30
31$BUILTIN true
32$FUNCTION colon_builtin
33$SHORT_DOC true
34Return a successful result.
35$END
36
37$BUILTIN false
38$FUNCTION false_builtin
39$SHORT_DOC false
40Return an unsuccessful result.
41$END
42
43/* Return a successful result. */
44int
45colon_builtin (ignore)
46 char *ignore;
47{
48 return (0);
49}
50
51/* Return an unsuccessful result. */
52int
53false_builtin (ignore)
54 char *ignore;
55{
56 return (1);
57}
Note: See TracBrowser for help on using the repository browser.