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