1 /* config-top.h - various user-settable options not under the control of autoconf. */
3 /* Copyright (C) 2002-2009 Free Software Foundation, Inc.
5 This file is part of GNU Bush, the Bourne Again SHell.
7 Bush 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.
12 Bush 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.
17 You should have received a copy of the GNU General Public License
18 along with Bush. If not, see <http://www.gnu.org/licenses/>.
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
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
30 /* Define CD_COMPLAINS if you want the non-standard, but sometimes-desired
31 error messages about multiple directory arguments to `cd'. */
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
39 /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
40 `command' whenever possible. This is a big efficiency improvement. */
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. */
49 /* Define DONT_REPORT_SIGPIPE if you don't want to see `Broken pipe' messages
50 when a job like `cat jobs.c | exit 1' terminates due to a SIGPIPE. */
51 #define DONT_REPORT_SIGPIPE
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. */
56 #define DONT_REPORT_SIGTERM
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
61 /* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */
63 /* The default value of the PATH variable. */
64 #ifndef DEFAULT_PATH_VALUE
65 #define DEFAULT_PATH_VALUE \
66 "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:."
69 /* If you want to unconditionally set a value for PATH in every restricted
71 /* #define RBUSH_STATIC_PATH_VALUE "/rbin:/usr/rbin" */
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 \
77 "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
80 /* Default primary and secondary prompt strings. */
81 #define PPROMPT "\\s-\\v\\$ "
84 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
85 the select menu after a valid choice is made only if REPLY is set to NULL
86 in the body of the select command. The menu is always reprinted if the
87 reply to the select query is an empty line. */
88 #define KSH_COMPATIBLE_SELECT
90 /* Default interactive shell startup file. */
91 #define DEFAULT_BUSHRC "~/.bushrc"
93 /* System-wide .bushrc file for interactive shells. */
94 /* #define SYS_BUSHRC "/etc/bush.bushrc" */
96 /* System-wide .bush_logout for login shells. */
97 /* #define SYS_BUSH_LOGOUT "/etc/bush.bush_logout" */
99 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
100 run the startup files when not in posix mode. */
101 /* #define NON_INTERACTIVE_LOGIN_SHELLS */
103 /* Define this if you want bush to try to check whether it's being run by
104 sshd and source the .bushrc if so (like the rshd behavior). This checks
105 for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
106 which can be fooled under certain not-uncommon circumstances. */
107 /* #define SSH_SOURCE_BUSHRC */
109 /* Define if you want the case-toggling operators (~[~]) and the
110 `capcase' variable attribute (declare -c). */
111 /* TAG: bush-5.2 disable */
112 #define CASEMOD_TOGGLECASE
113 #define CASEMOD_CAPCASE
115 /* This is used as the name of a shell function to call when a command
116 name is not found. If you want to name it something other than the
117 default ("command_not_found_handle"), change it here. */
118 /* #define NOTFOUND_HOOK "command_not_found_handle" */
120 /* Define if you want each line saved to the history list in bushhist.c:
121 bush_add_history() to be sent to syslog(). */
122 /* #define SYSLOG_HISTORY */
123 #if defined (SYSLOG_HISTORY)
124 # define SYSLOG_FACILITY LOG_USER
125 # define SYSLOG_LEVEL LOG_INFO
126 # define OPENLOG_OPTS LOG_PID
129 /* Define if you want syslogging history to be controllable at runtime via a
130 shell option; if defined, the value is the default for the syslog_history
132 #if defined (SYSLOG_HISTORY)
133 /* #define SYSLOG_SHOPT 1 */
136 /* Define if you want to include code in shell.c to support wordexp(3) */
137 /* #define WORDEXP_OPTION */
139 /* Define as 1 if you want to enable code that implements multiple coprocs
140 executing simultaneously */
141 #ifndef MULTIPLE_COPROCS
142 # define MULTIPLE_COPROCS 0
145 /* Define to 0 if you want the checkwinsize option off by default, 1 if you
147 #define CHECKWINSIZE_DEFAULT 1
149 /* Define to 1 if you want to optimize for sequential array assignment when
150 using indexed arrays, 0 if you want bush-4.2 behavior, which favors
151 random access but is O(N) for each array assignment. */
152 #define OPTIMIZE_SEQUENTIAL_ARRAY_ASSIGNMENT 1
154 /* Define to 1 if you want to be able to export indexed arrays to processes
155 using the foo=([0]=one [1]=two) and so on */
156 /* #define ARRAY_EXPORT 1 */
158 /* Define to 1 if you want the shell to exit if it is running setuid and its
159 attempt to drop privilege using setuid(getuid()) fails with errno == EAGAIN */
160 /* #define EXIT_ON_SETUID_FAILURE 1 */
162 /* Define to 1 if you want the shell to re-check $PATH if a hashed filename
163 no longer exists. This behavior is the default in Posix mode. */
164 #define CHECKHASH_DEFAULT 0
166 /* Define to the maximum level of recursion you want for the eval builtin
167 and trap handlers (since traps are run as if run by eval).
168 0 means the limit is not active. */
169 #define EVALNEST_MAX 0
171 /* Define to the maximum level of recursion you want for the source/. builtin.
172 0 means the limit is not active. */
173 #define SOURCENEST_MAX 0
175 /* Define to use libc mktemp/mkstemp instead of replacements in lib/sh/tmpfile.c */
180 /* Define to force the value of OLDPWD inherited from the environment to be a
182 #define OLDPWD_CHECK_DIRECTORY 1
184 /* Define to set the initial size of the history list ($HISTSIZE). This must
186 /*#define HISTSIZE_DEFAULT "500"*/
188 /* Define to 0 if you want history expansion to be disabled by default in
189 interactive shells; define to 1 for the historical behavior of enabling
190 when the shell is interactive. */
191 #define HISTEXPAND_DEFAULT 1
193 /* Undefine or define to 0 if you don't want to allow associative array
194 assignment using a compound list of key-value pairs. */
195 #define ASSOC_KVPAIR_ASSIGNMENT 1