Imported from ../bash-1.14.7.tar.gz.
[platform/upstream/bash.git] / config.h.mini
1 /* config.h -- Configuration file for bash. */
2
3 /* This is a `minimal' configuration file.  It will create a shell without:
4         job control
5         aliases
6         pushd and popd
7         readline
8         history
9         restricted shell mode
10         `disabled' builtins (builtin xxx finds xxx even after enable -n xxx)
11         process substitution
12         prompt string decoding (though variable expansion is still done)
13         the `select' command */
14         
15 /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
16
17    This file is part of GNU Bash, the Bourne Again SHell.
18
19    Bash is free software; you can redistribute it and/or modify it
20    under the terms of the GNU General Public License as published by
21    the Free Software Foundation; either version 1, or (at your option)
22    any later version.
23
24    Bash is distributed in the hope that it will be useful, but WITHOUT
25    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
27    License for more details.
28
29    You should have received a copy of the GNU General Public License
30    along with Bash; see the file COPYING.  If not, write to the Free
31    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
32
33 #if !defined (_CONFIG_H_)
34 #define _CONFIG_H_
35
36 #include "memalloc.h"
37
38 #if defined (HPUX) || defined (UNIXPC) || defined (Xenix)
39 #  if !defined (USG)
40 #    define USG
41 #  endif
42 #endif
43
44 #if defined (HAVE_UNISTD_H) && !defined (BUILDING_MAKEFILE)
45 #include <unistd.h>
46 #endif
47
48 /* Define JOB_CONTROL if your operating system supports
49    BSD-like job control. */
50 /* #define JOB_CONTROL */
51
52 /* Note that vanilla System V machines don't support BSD job control,
53    although some do support Posix job control. */
54 #if defined (USG) && !defined (_POSIX_JOB_CONTROL)
55 #  undef JOB_CONTROL
56 #endif /* USG && !_POSIX_JOB_CONTROL */
57
58 /* Define ALIAS if you want the alias features. */
59 /* #define ALIAS */
60
61 /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
62    (Also the `dirs' commands.) */
63 /* #define PUSHD_AND_POPD */
64
65 /* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
66    foo{a,b} -> fooa foob.  Even if this is compiled in (the default) you
67    can turn it off at shell startup with `-nobraceexpansion', or during
68    shell execution with `set +o braceexpand'. */
69 /* #define BRACE_EXPANSION */
70
71 /* Define READLINE to get the nifty/glitzy editing features.
72    This is on by default.  You can turn it off interactively
73    with the -nolineediting flag. */
74 /* #define READLINE */
75
76 /* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
77    This is unrelated to READLINE. */
78 /* #define BANG_HISTORY */
79
80 /* Define HISTORY if you want to have access to previously typed commands.
81
82    If both HISTORY and READLINE are defined, you can get at the commands
83    with line editing commands, and you can directly manipulate the history
84    from the command line.
85
86    If only HISTORY is defined, the `fc' and `history' builtins are
87    available. */
88 /* #define HISTORY */
89
90 #if defined (BANG_HISTORY) && !defined (HISTORY)
91    /* BANG_HISTORY requires HISTORY. */
92 #  define HISTORY
93 #endif /* BANG_HISTORY && !HISTORY */
94
95 #if defined (READLINE) && !defined (HISTORY)
96 #  define HISTORY
97 #endif
98
99 /* The default value of the PATH variable. */
100 #define DEFAULT_PATH_VALUE \
101   "/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:."
102
103 /* The value for PATH when invoking `command -p'.  This is only used when
104    the Posix.2 confstr () function, or CS_PATH define are not present. */
105 #define STANDARD_UTILS_PATH \
106   "/bin:/usr/bin:/usr/ucb:/usr/sbin:/sbin:/etc:/usr/etc:/usr/lib"
107
108 /* Put system-specific default mail directories here. */
109 #if defined (__bsdi__) || defined (__FreeBSD__) || defined (__NetBSD__)
110 #  define DEFAULT_MAIL_PATH "/var/mail/"
111 #endif
112
113 #if !defined (DEFAULT_MAIL_PATH)
114 #if defined (USG)
115 #  define DEFAULT_MAIL_PATH "/usr/mail/"
116 #else
117 #  define DEFAULT_MAIL_PATH "/usr/spool/mail/"
118 #endif
119 #endif
120
121 /* Define V9_ECHO if you want to give the echo builtin backslash-escape
122    interpretation using the -e option, in the style of the Bell Labs 9th
123    Edition version of echo. */
124 #define V9_ECHO
125
126 /* Define DEFAULT_ECHO_TO_USG if you want the echo builtin to interpret
127    the backslash-escape characters by default, like the System V echo.
128    This requires that V9_ECHO be defined. */
129 /* #define DEFAULT_ECHO_TO_USG */
130 #if !defined (V9_ECHO)
131 #  undef DEFAULT_ECHO_TO_USG
132 #endif
133
134 /* Define CONTINUE_AFTER_KILL_ERROR if you want the kill command to
135    continue processing arguments after one of them fails. */
136 #define CONTINUE_AFTER_KILL_ERROR
137
138 /* Define BREAK_COMPLAINS if you want the non-standard, but useful
139    error messages about `break' and `continue' out of context. */
140 #define BREAK_COMPLAINS
141
142 /* Define GETOPTS_BUILTIN if you want the Posix.2 `getopts' shell builtin
143    compiled into the shell. */
144 #define GETOPTS_BUILTIN
145
146 /* When ALLOW_RIGID_POSIX_COMPLIANCE is defined, you can turn on strictly
147    Posix compliant behaviour by setting the environment variable
148    POSIXLY_CORRECT. */
149 #define ALLOW_RIGID_POSIX_COMPLIANCE
150
151 /* Define RESTRICTED_SHELL if you want the generated shell to have the
152    ability to be a restricted one.  The shell thus generated can become
153    restricted by being run with the name "rbash", or by setting the -r
154    flag. */
155 /* #define RESTRICTED_SHELL */
156
157 /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
158    shell builtin "foo", even if it has been disabled with "enable -n foo". */
159 /* #define DISABLED_BUILTINS */
160
161 /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
162    substitution features "<(file)". */
163 /* Right now, you cannot do this on machines without fully operational
164    FIFO support.  This currently include NeXT and Alliant. */
165 #if !defined (MKFIFO_MISSING)
166 #  define PROCESS_SUBSTITUTION
167 #endif /* !MKFIFO_MISSING */
168
169 /* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
170    characters in PS1 and PS2 expanded.  Variable expansion will still be
171    performed. */
172 /* #define PROMPT_STRING_DECODE */
173
174 /* Define BUFFERED_INPUT if you want the shell to do its own input
175    buffering. */
176 #define BUFFERED_INPUT
177
178 /* Define INTERACTIVE_COMMENTS if you want # comments to work by default
179    when the shell is interactive, as Posix.2a specifies. */
180 #define INTERACTIVE_COMMENTS
181
182 /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
183    `command' whenever possible. */
184 #define ONESHOT
185
186 /* Default primary and secondary prompt strings. */
187 #define PPROMPT "bash\\$ "
188 #define SPROMPT "> "
189
190 /* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
191         select word in word_list; do command_list; done */
192 /* #define SELECT_COMMAND */
193
194 #endif  /* !_CONFIG_H_ */