]> git.ipfire.org Git - thirdparty/bash.git/blame - config-top.h
Bash-5.2 patch 26: fix typo when specifying readline's custom color prefix
[thirdparty/bash.git] / config-top.h
CommitLineData
3185942a 1/* config-top.h - various user-settable options not under the control of autoconf. */
ccc6cda3 2
74091dd4 3/* Copyright (C) 2002-2021 Free Software Foundation, Inc.
7117c2d2
JA
4
5 This file is part of GNU Bash, the Bourne Again SHell.
6
3185942a
JA
7 Bash is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
7117c2d2 11
3185942a
JA
12 Bash is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
7117c2d2 16
3185942a
JA
17 You should have received a copy of the GNU General Public License
18 along with Bash. If not, see <http://www.gnu.org/licenses/>.
19*/
7117c2d2 20
ccc6cda3
JA
21/* Define CONTINUE_AFTER_KILL_ERROR if you want the kill command to
22 continue processing arguments after one of them fails. This is
23 what POSIX.2 specifies. */
24#define CONTINUE_AFTER_KILL_ERROR
25
26/* Define BREAK_COMPLAINS if you want the non-standard, but useful
27 error messages about `break' and `continue' out of context. */
28#define BREAK_COMPLAINS
29
a0c0a00f
CR
30/* Define CD_COMPLAINS if you want the non-standard, but sometimes-desired
31 error messages about multiple directory arguments to `cd'. */
32#define CD_COMPLAINS
33
ccc6cda3
JA
34/* Define BUFFERED_INPUT if you want the shell to do its own input
35 buffering, rather than using stdio. Do not undefine this; it's
36 required to preserve semantics required by POSIX. */
37#define BUFFERED_INPUT
38
39/* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
40 `command' whenever possible. This is a big efficiency improvement. */
41#define ONESHOT
42
43/* Define V9_ECHO if you want to give the echo builtin backslash-escape
44 interpretation using the -e option, in the style of the Bell Labs 9th
45 Edition version of echo. You cannot emulate the System V echo behavior
46 without this option. */
47#define V9_ECHO
48
d166f048 49/* Define DONT_REPORT_SIGPIPE if you don't want to see `Broken pipe' messages
3185942a 50 when a job like `cat jobs.c | exit 1' terminates due to a SIGPIPE. */
95732b49 51#define DONT_REPORT_SIGPIPE
d166f048 52
ac50fbac
CR
53/* Define DONT_REPORT_SIGTERM if you don't want to see `Terminates' message
54 when a job exits due to SIGTERM, since that's the default signal sent
55 by the kill builtin. */
d233b485 56#define DONT_REPORT_SIGTERM
ac50fbac 57
3185942a
JA
58/* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins
59 like `echo' and `printf' to report errors when output does not succeed
60 due to EPIPE. */
61/* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */
62
ccc6cda3
JA
63/* The default value of the PATH variable. */
64#ifndef DEFAULT_PATH_VALUE
65#define DEFAULT_PATH_VALUE \
ac50fbac 66 "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:."
ccc6cda3
JA
67#endif
68
d233b485
CR
69/* If you want to unconditionally set a value for PATH in every restricted
70 shell, set this. */
71/* #define RBASH_STATIC_PATH_VALUE "/rbin:/usr/rbin" */
72
ccc6cda3
JA
73/* The value for PATH when invoking `command -p'. This is only used when
74 the Posix.2 confstr () function, or CS_PATH define are not present. */
75#ifndef STANDARD_UTILS_PATH
76#define STANDARD_UTILS_PATH \
b80f6443 77 "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
ccc6cda3
JA
78#endif
79
74091dd4
CR
80/* The default path for enable -f */
81#ifndef DEFAULT_LOADABLE_BUILTINS_PATH
82#define DEFAULT_LOADABLE_BUILTINS_PATH \
83 "/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:."
84#endif
85
ccc6cda3
JA
86/* Default primary and secondary prompt strings. */
87#define PPROMPT "\\s-\\v\\$ "
88#define SPROMPT "> "
89
7117c2d2
JA
90/* Undefine this if you don't want the ksh-compatible behavior of reprinting
91 the select menu after a valid choice is made only if REPLY is set to NULL
92 in the body of the select command. The menu is always reprinted if the
93 reply to the select query is an empty line. */
94#define KSH_COMPATIBLE_SELECT
95
a0c0a00f
CR
96/* Default interactive shell startup file. */
97#define DEFAULT_BASHRC "~/.bashrc"
98
ccc6cda3
JA
99/* System-wide .bashrc file for interactive shells. */
100/* #define SYS_BASHRC "/etc/bash.bashrc" */
101
102/* System-wide .bash_logout for login shells. */
103/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
bb70624e
JA
104
105/* Define this to make non-interactive shells begun with argv[0][0] == '-'
106 run the startup files when not in posix mode. */
107/* #define NON_INTERACTIVE_LOGIN_SHELLS */
f73dda09
JA
108
109/* Define this if you want bash to try to check whether it's being run by
3185942a
JA
110 sshd and source the .bashrc if so (like the rshd behavior). This checks
111 for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
112 which can be fooled under certain not-uncommon circumstances. */
f73dda09 113/* #define SSH_SOURCE_BASHRC */
3185942a 114
8868edaf 115/* Define if you want the case-toggling operators (~[~]) and the
3185942a 116 `capcase' variable attribute (declare -c). */
74091dd4 117/* TAG: bash-5.2 disable? */
8868edaf
CR
118#define CASEMOD_TOGGLECASE
119#define CASEMOD_CAPCASE
3185942a
JA
120
121/* This is used as the name of a shell function to call when a command
122 name is not found. If you want to name it something other than the
123 default ("command_not_found_handle"), change it here. */
124/* #define NOTFOUND_HOOK "command_not_found_handle" */
0001803f
CR
125
126/* Define if you want each line saved to the history list in bashhist.c:
127 bash_add_history() to be sent to syslog(). */
128/* #define SYSLOG_HISTORY */
129#if defined (SYSLOG_HISTORY)
130# define SYSLOG_FACILITY LOG_USER
131# define SYSLOG_LEVEL LOG_INFO
a0c0a00f 132# define OPENLOG_OPTS LOG_PID
0001803f
CR
133#endif
134
d233b485
CR
135/* Define if you want syslogging history to be controllable at runtime via a
136 shell option; if defined, the value is the default for the syslog_history
137 shopt option */
138#if defined (SYSLOG_HISTORY)
139/* #define SYSLOG_SHOPT 1 */
140#endif
141
0001803f
CR
142/* Define if you want to include code in shell.c to support wordexp(3) */
143/* #define WORDEXP_OPTION */
ac50fbac 144
d233b485
CR
145/* Define as 1 if you want to enable code that implements multiple coprocs
146 executing simultaneously */
ac50fbac
CR
147#ifndef MULTIPLE_COPROCS
148# define MULTIPLE_COPROCS 0
149#endif
150
151/* Define to 0 if you want the checkwinsize option off by default, 1 if you
152 want it on. */
d233b485 153#define CHECKWINSIZE_DEFAULT 1
ac50fbac
CR
154
155/* Define to 1 if you want to optimize for sequential array assignment when
156 using indexed arrays, 0 if you want bash-4.2 behavior, which favors
157 random access but is O(N) for each array assignment. */
158#define OPTIMIZE_SEQUENTIAL_ARRAY_ASSIGNMENT 1
159
160/* Define to 1 if you want to be able to export indexed arrays to processes
161 using the foo=([0]=one [1]=two) and so on */
162/* #define ARRAY_EXPORT 1 */
a0c0a00f
CR
163
164/* Define to 1 if you want the shell to exit if it is running setuid and its
165 attempt to drop privilege using setuid(getuid()) fails with errno == EAGAIN */
166/* #define EXIT_ON_SETUID_FAILURE 1 */
167
168/* Define to 1 if you want the shell to re-check $PATH if a hashed filename
169 no longer exists. This behavior is the default in Posix mode. */
170#define CHECKHASH_DEFAULT 0
171
d233b485
CR
172/* Define to the maximum level of recursion you want for the eval builtin
173 and trap handlers (since traps are run as if run by eval).
a0c0a00f
CR
174 0 means the limit is not active. */
175#define EVALNEST_MAX 0
176
177/* Define to the maximum level of recursion you want for the source/. builtin.
178 0 means the limit is not active. */
179#define SOURCENEST_MAX 0
180
181/* Define to use libc mktemp/mkstemp instead of replacements in lib/sh/tmpfile.c */
182#define USE_MKTEMP
183#define USE_MKSTEMP
8868edaf 184#define USE_MKDTEMP
d233b485
CR
185
186/* Define to force the value of OLDPWD inherited from the environment to be a
187 directory */
188#define OLDPWD_CHECK_DIRECTORY 1
189
190/* Define to set the initial size of the history list ($HISTSIZE). This must
191 be a string. */
192/*#define HISTSIZE_DEFAULT "500"*/
193
194/* Define to 0 if you want history expansion to be disabled by default in
195 interactive shells; define to 1 for the historical behavior of enabling
196 when the shell is interactive. */
197#define HISTEXPAND_DEFAULT 1
8868edaf
CR
198
199/* Undefine or define to 0 if you don't want to allow associative array
200 assignment using a compound list of key-value pairs. */
201#define ASSOC_KVPAIR_ASSIGNMENT 1