]> git.ipfire.org Git - thirdparty/bash.git/blob - config-top.h
change to test builtin for parenthesized expressions when there are more than four...
[thirdparty/bash.git] / config-top.h
1 /* config-top.h - various user-settable options not under the control of autoconf. */
2
3 /* Copyright (C) 2002-2024 Free Software Foundation, Inc.
4
5 This file is part of GNU Bash, the Bourne Again SHell.
6
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.
11
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.
16
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 */
20
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
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
34 /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
35 `command' whenever possible. This is a big efficiency improvement. */
36 #define ONESHOT
37
38 /* Define V9_ECHO if you want to give the echo builtin backslash-escape
39 interpretation using the -e option, in the style of the Bell Labs 9th
40 Edition version of echo. You cannot emulate the System V echo behavior
41 without this option. */
42 #define V9_ECHO
43
44 /* Define DONT_REPORT_SIGPIPE if you don't want to see `Broken pipe' messages
45 when a job like `cat jobs.c | exit 1' terminates due to a SIGPIPE. */
46 #define DONT_REPORT_SIGPIPE
47
48 /* Define DONT_REPORT_SIGTERM if you don't want to see `Terminated' message
49 when a job exits due to SIGTERM, since that's the default signal sent
50 by the kill builtin. */
51 #define DONT_REPORT_SIGTERM
52
53 /* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins
54 like `echo' and `printf' to report errors when output does not succeed
55 due to EPIPE. */
56 /* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */
57
58 /* The default value of the PATH variable. */
59 #ifndef DEFAULT_PATH_VALUE
60 #define DEFAULT_PATH_VALUE \
61 "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:."
62 #endif
63
64 /* If you want to unconditionally set a value for PATH in every restricted
65 shell, set this. */
66 /* #define RBASH_STATIC_PATH_VALUE "/rbin:/usr/rbin" */
67
68 /* The value for PATH when invoking `command -p'. This is only used when
69 the Posix.2 confstr () function, or CS_PATH define are not present. */
70 #ifndef STANDARD_UTILS_PATH
71 #define STANDARD_UTILS_PATH \
72 "/bin:/usr/bin:/sbin:/usr/sbin"
73 #endif
74
75 /* The default path for enable -f */
76 #ifndef DEFAULT_LOADABLE_BUILTINS_PATH
77 #define DEFAULT_LOADABLE_BUILTINS_PATH \
78 "/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:."
79 #endif
80
81 /* Default primary and secondary prompt strings. */
82 #define PPROMPT "\\s-\\v\\$ "
83 #define SPROMPT "> "
84
85 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
86 the select menu after a valid choice is made only if REPLY is set to NULL
87 in the body of the select command. The menu is always reprinted if the
88 reply to the select query is an empty line. */
89 #define KSH_COMPATIBLE_SELECT
90
91 /* Default interactive shell startup file. */
92 #define DEFAULT_BASHRC "~/.bashrc"
93
94 /* System-wide .bashrc file for interactive shells. */
95 /* #define SYS_BASHRC "/etc/bash.bashrc" */
96
97 /* System-wide .bash_logout for login shells. */
98 /* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
99
100 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
101 run the startup files when not in posix mode. */
102 /* #define NON_INTERACTIVE_LOGIN_SHELLS */
103
104 /* Define this if you want bash to try to check whether it's being run by
105 sshd and source the .bashrc if so (like the rshd behavior). This checks
106 for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
107 which can be fooled under certain not-uncommon circumstances. */
108 /* #define SSH_SOURCE_BASHRC */
109
110 /* Define if you want the case-toggling operators (~[~]) and the
111 `capcase' variable attribute (declare -c). */
112 /* TAG: bash-5.2 disable? */
113 #define CASEMOD_TOGGLECASE
114 #define CASEMOD_CAPCASE
115
116 /* This is used as the name of a shell function to call when a command
117 name is not found. If you want to name it something other than the
118 default ("command_not_found_handle"), change it here. */
119 /* #define NOTFOUND_HOOK "command_not_found_handle" */
120
121 /* Define if you want each line saved to the history list in bashhist.c:
122 bash_add_history() to be sent to syslog(). */
123 /* #define SYSLOG_HISTORY */
124 #if defined (SYSLOG_HISTORY)
125 # define SYSLOG_FACILITY LOG_USER
126 # define SYSLOG_LEVEL LOG_INFO
127 # define OPENLOG_OPTS LOG_PID
128 #endif
129
130 /* Define if you want syslogging history to be controllable at runtime via a
131 shell option; if defined, the value is the default for the syslog_history
132 shopt option */
133 #if defined (SYSLOG_HISTORY)
134 /* #define SYSLOG_SHOPT 1 */
135 #endif
136
137 /* Define if you want to include code in shell.c to support wordexp(3) */
138 /* #define WORDEXP_OPTION */
139
140 /* Define as 1 if you want to enable code that implements multiple coprocs
141 executing simultaneously */
142 /* TAG: bash-5.3 */
143 #ifndef MULTIPLE_COPROCS
144 # define MULTIPLE_COPROCS 0
145 #endif
146
147 /* Define to 0 if you want the checkwinsize option off by default, 1 if you
148 want it on. */
149 #define CHECKWINSIZE_DEFAULT 1
150
151 /* Define to 1 if you want to optimize for sequential array assignment when
152 using indexed arrays, 0 if you want bash-4.2 behavior, which favors
153 random access but is O(N) for each array assignment. */
154 #define OPTIMIZE_SEQUENTIAL_ARRAY_ASSIGNMENT 1
155
156 /* Define to 1 if you want to be able to export indexed arrays to processes
157 using the foo=([0]=one [1]=two) and so on */
158 /* #define ARRAY_EXPORT 1 */
159
160 /* Define to 1 if you want the shell to exit if it is running setuid and its
161 attempt to drop privilege using setuid(getuid()) fails with errno == EAGAIN */
162 /* #define EXIT_ON_SETUID_FAILURE 1 */
163
164 /* Define to 1 if you want the shell to re-check $PATH if a hashed filename
165 no longer exists. This behavior is the default in Posix mode. */
166 #define CHECKHASH_DEFAULT 0
167
168 /* Define to the maximum level of recursion you want for the eval builtin
169 and trap handlers (since traps are run as if run by eval).
170 0 means the limit is not active. */
171 #define EVALNEST_MAX 0
172
173 /* Define to the maximum level of recursion you want for the source/. builtin.
174 0 means the limit is not active. */
175 #define SOURCENEST_MAX 0
176
177 /* Define to use libc mktemp/mkstemp instead of replacements in lib/sh/tmpfile.c */
178 #define USE_MKTEMP
179 #define USE_MKSTEMP
180 #define USE_MKDTEMP
181
182 /* Define to force the value of OLDPWD inherited from the environment to be a
183 directory */
184 #define OLDPWD_CHECK_DIRECTORY 1
185
186 /* Define to set the initial size of the history list ($HISTSIZE). This must
187 be a string. */
188 /*#define HISTSIZE_DEFAULT "500"*/
189
190 /* Define to 0 if you want history expansion to be disabled by default in
191 interactive shells; define to 1 for the historical behavior of enabling
192 when the shell is interactive. */
193 #define HISTEXPAND_DEFAULT 1
194
195 /* Undefine or define to 0 if you don't want to allow associative array
196 assignment using a compound list of key-value pairs. */
197 #define ASSOC_KVPAIR_ASSIGNMENT 1
198
199 /* Define if you want read errors in non-interactive shells to be fatal
200 errors instead of the historical practice of treating them as EOF. The
201 next version of POSIX will require this (interp 1629). */
202 #define FATAL_READERROR 1
203
204 /* Define to 0 if you want the `patsub_replacement' shell option to be disabled
205 by default. */
206 #ifndef PATSUB_REPLACE_DEFAULT
207 #define PATSUB_REPLACE_DEFAULT 1
208 #endif