| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1 | /* config-top.h - various user-settable options not under the control of autoconf. */ |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 2 | |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 3 | /* Copyright (C) 2002-2009 Free Software Foundation, Inc. |
| Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 4 | |
| 5 | This file is part of GNU Bash, the Bourne Again SHell. |
| 6 | |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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. |
| Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 11 | |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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. |
| Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 16 | |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 | */ |
| Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 20 | |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 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 BUFFERED_INPUT if you want the shell to do its own input |
| 31 | buffering, rather than using stdio. Do not undefine this; it's |
| 32 | required to preserve semantics required by POSIX. */ |
| 33 | #define BUFFERED_INPUT |
| 34 | |
| 35 | /* Define ONESHOT if you want sh -c 'command' to avoid forking to execute |
| 36 | `command' whenever possible. This is a big efficiency improvement. */ |
| 37 | #define ONESHOT |
| 38 | |
| 39 | /* Define V9_ECHO if you want to give the echo builtin backslash-escape |
| 40 | interpretation using the -e option, in the style of the Bell Labs 9th |
| 41 | Edition version of echo. You cannot emulate the System V echo behavior |
| 42 | without this option. */ |
| 43 | #define V9_ECHO |
| 44 | |
| Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 45 | /* Define DONT_REPORT_SIGPIPE if you don't want to see `Broken pipe' messages |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 46 | when a job like `cat jobs.c | exit 1' terminates due to a SIGPIPE. */ |
| Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 47 | #define DONT_REPORT_SIGPIPE |
| Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 48 | |
| Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 49 | /* Define DONT_REPORT_SIGTERM if you don't want to see `Terminates' message |
| 50 | when a job exits due to SIGTERM, since that's the default signal sent |
| 51 | by the kill builtin. */ |
| 52 | /* #define DONT_REPORT_SIGTERM */ |
| 53 | |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 54 | /* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins |
| 55 | like `echo' and `printf' to report errors when output does not succeed |
| 56 | due to EPIPE. */ |
| 57 | /* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */ |
| 58 | |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 59 | /* The default value of the PATH variable. */ |
| 60 | #ifndef DEFAULT_PATH_VALUE |
| 61 | #define DEFAULT_PATH_VALUE \ |
| cvpcs | 0ff61cc | 2010-06-03 08:35:40 -0500 | [diff] [blame] | 62 | "/sbin:/system/sbin:/system/bin:/system/xbin:." |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 63 | #endif |
| 64 | |
| 65 | /* The value for PATH when invoking `command -p'. This is only used when |
| 66 | the Posix.2 confstr () function, or CS_PATH define are not present. */ |
| 67 | #ifndef STANDARD_UTILS_PATH |
| 68 | #define STANDARD_UTILS_PATH \ |
| cvpcs | 0ff61cc | 2010-06-03 08:35:40 -0500 | [diff] [blame] | 69 | "/sbin:/system/sbin:/system/bin:/system/xbin:/system/etc" |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 70 | #endif |
| 71 | |
| 72 | /* Default primary and secondary prompt strings. */ |
| 73 | #define PPROMPT "\\s-\\v\\$ " |
| 74 | #define SPROMPT "> " |
| 75 | |
| Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 76 | /* Undefine this if you don't want the ksh-compatible behavior of reprinting |
| 77 | the select menu after a valid choice is made only if REPLY is set to NULL |
| 78 | in the body of the select command. The menu is always reprinted if the |
| 79 | reply to the select query is an empty line. */ |
| 80 | #define KSH_COMPATIBLE_SELECT |
| 81 | |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 82 | /* System-wide .bashrc file for interactive shells. */ |
| cvpcs | 36c1272 | 2010-06-03 14:18:57 -0500 | [diff] [blame] | 83 | #define SYS_BASHRC "/system/etc/bash/bashrc" |
| Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 84 | |
| 85 | /* System-wide .bash_logout for login shells. */ |
| cvpcs | 36c1272 | 2010-06-03 14:18:57 -0500 | [diff] [blame] | 86 | #define SYS_BASH_LOGOUT "/system/etc/bash/bash_logout" |
| Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 87 | |
| 88 | /* Define this to make non-interactive shells begun with argv[0][0] == '-' |
| 89 | run the startup files when not in posix mode. */ |
| 90 | /* #define NON_INTERACTIVE_LOGIN_SHELLS */ |
| Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 91 | |
| 92 | /* Define this if you want bash to try to check whether it's being run by |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 93 | sshd and source the .bashrc if so (like the rshd behavior). This checks |
| 94 | for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment, |
| 95 | which can be fooled under certain not-uncommon circumstances. */ |
| Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 96 | /* #define SSH_SOURCE_BASHRC */ |
| Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 97 | |
| 98 | /* Define if you want the case-capitalizing operators (~[~]) and the |
| 99 | `capcase' variable attribute (declare -c). */ |
| 100 | #define CASEMOD_CAPCASE |
| 101 | |
| 102 | /* This is used as the name of a shell function to call when a command |
| 103 | name is not found. If you want to name it something other than the |
| 104 | default ("command_not_found_handle"), change it here. */ |
| 105 | /* #define NOTFOUND_HOOK "command_not_found_handle" */ |
| Chet Ramey | 0001803 | 2011-11-21 20:51:19 -0500 | [diff] [blame] | 106 | |
| 107 | /* Define if you want each line saved to the history list in bashhist.c: |
| 108 | bash_add_history() to be sent to syslog(). */ |
| 109 | /* #define SYSLOG_HISTORY */ |
| 110 | #if defined (SYSLOG_HISTORY) |
| 111 | # define SYSLOG_FACILITY LOG_USER |
| 112 | # define SYSLOG_LEVEL LOG_INFO |
| 113 | #endif |
| 114 | |
| 115 | /* Define if you want to include code in shell.c to support wordexp(3) */ |
| 116 | /* #define WORDEXP_OPTION */ |
| Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 117 | |
| 118 | /* Define as 1 if you want to enable code that implements multiple coprocs */ |
| 119 | #ifndef MULTIPLE_COPROCS |
| 120 | # define MULTIPLE_COPROCS 0 |
| 121 | #endif |
| 122 | |
| 123 | /* Define to 0 if you want the checkwinsize option off by default, 1 if you |
| 124 | want it on. */ |
| 125 | #define CHECKWINSIZE_DEFAULT 0 |
| 126 | |
| 127 | /* Define to 1 if you want to optimize for sequential array assignment when |
| 128 | using indexed arrays, 0 if you want bash-4.2 behavior, which favors |
| 129 | random access but is O(N) for each array assignment. */ |
| 130 | #define OPTIMIZE_SEQUENTIAL_ARRAY_ASSIGNMENT 1 |
| 131 | |
| 132 | /* Define to 1 if you want to be able to export indexed arrays to processes |
| 133 | using the foo=([0]=one [1]=two) and so on */ |
| 134 | /* #define ARRAY_EXPORT 1 */ |