1 /* config.h -- Configuration file for bash. */
3 /* This is a `minimal' configuration file. It will create a shell without:
10 `disabled' builtins (builtin xxx finds xxx even after enable -n xxx)
12 prompt string decoding (though variable expansion is still done)
13 the `select' command */
15 /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
17 This file is part of GNU Bash, the Bourne Again SHell.
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)
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.
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. */
33 #if !defined (_CONFIG_H_)
38 #if defined (HPUX) || defined (UNIXPC) || defined (Xenix)
44 #if defined (HAVE_UNISTD_H) && !defined (BUILDING_MAKEFILE)
48 /* Define JOB_CONTROL if your operating system supports
49 BSD-like job control. */
50 /* #define JOB_CONTROL */
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)
56 #endif /* USG && !_POSIX_JOB_CONTROL */
58 /* Define ALIAS if you want the alias features. */
61 /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
62 (Also the `dirs' commands.) */
63 /* #define PUSHD_AND_POPD */
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 */
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 */
76 /* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
77 This is unrelated to READLINE. */
78 /* #define BANG_HISTORY */
80 /* Define HISTORY if you want to have access to previously typed commands.
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.
86 If only HISTORY is defined, the `fc' and `history' builtins are
90 #if defined (BANG_HISTORY) && !defined (HISTORY)
91 /* BANG_HISTORY requires HISTORY. */
93 #endif /* BANG_HISTORY && !HISTORY */
95 #if defined (READLINE) && !defined (HISTORY)
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:."
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"
108 /* Put system-specific default mail directories here. */
109 #if defined (__bsdi__) || defined (__FreeBSD__) || defined (__NetBSD__)
110 # define DEFAULT_MAIL_PATH "/var/mail/"
113 #if !defined (DEFAULT_MAIL_PATH)
115 # define DEFAULT_MAIL_PATH "/usr/mail/"
117 # define DEFAULT_MAIL_PATH "/usr/spool/mail/"
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. */
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
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
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
142 /* Define GETOPTS_BUILTIN if you want the Posix.2 `getopts' shell builtin
143 compiled into the shell. */
144 #define GETOPTS_BUILTIN
146 /* When ALLOW_RIGID_POSIX_COMPLIANCE is defined, you can turn on strictly
147 Posix compliant behaviour by setting the environment variable
149 #define ALLOW_RIGID_POSIX_COMPLIANCE
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
155 /* #define RESTRICTED_SHELL */
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 */
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 */
169 /* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
170 characters in PS1 and PS2 expanded. Variable expansion will still be
172 /* #define PROMPT_STRING_DECODE */
174 /* Define BUFFERED_INPUT if you want the shell to do its own input
176 #define BUFFERED_INPUT
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
182 /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
183 `command' whenever possible. */
186 /* Default primary and secondary prompt strings. */
187 #define PPROMPT "bash\\$ "
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 */
194 #endif /* !_CONFIG_H_ */