194 lines
6.5 KiB
Text
194 lines
6.5 KiB
Text
/* config.h -- Configuration file for bash. */
|
|
|
|
/* This is a `minimal' configuration file. It will create a shell without:
|
|
job control
|
|
aliases
|
|
pushd and popd
|
|
readline
|
|
history
|
|
restricted shell mode
|
|
`disabled' builtins (builtin xxx finds xxx even after enable -n xxx)
|
|
process substitution
|
|
prompt string decoding (though variable expansion is still done)
|
|
the `select' command */
|
|
|
|
/* Copyright (C) 1987,1991 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU Bash, the Bourne Again SHell.
|
|
|
|
Bash is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 1, or (at your option)
|
|
any later version.
|
|
|
|
Bash is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Bash; see the file COPYING. If not, write to the Free
|
|
Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
#if !defined (_CONFIG_H_)
|
|
#define _CONFIG_H_
|
|
|
|
#include "memalloc.h"
|
|
|
|
#if defined (HPUX) || defined (UNIXPC) || defined (Xenix)
|
|
# if !defined (USG)
|
|
# define USG
|
|
# endif
|
|
#endif
|
|
|
|
#if defined (HAVE_UNISTD_H) && !defined (BUILDING_MAKEFILE)
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
/* Define JOB_CONTROL if your operating system supports
|
|
BSD-like job control. */
|
|
/* #define JOB_CONTROL */
|
|
|
|
/* Note that vanilla System V machines don't support BSD job control,
|
|
although some do support Posix job control. */
|
|
#if defined (USG) && !defined (_POSIX_JOB_CONTROL)
|
|
# undef JOB_CONTROL
|
|
#endif /* USG && !_POSIX_JOB_CONTROL */
|
|
|
|
/* Define ALIAS if you want the alias features. */
|
|
/* #define ALIAS */
|
|
|
|
/* Define PUSHD_AND_POPD if you want those commands to be compiled in.
|
|
(Also the `dirs' commands.) */
|
|
/* #define PUSHD_AND_POPD */
|
|
|
|
/* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
|
|
foo{a,b} -> fooa foob. Even if this is compiled in (the default) you
|
|
can turn it off at shell startup with `-nobraceexpansion', or during
|
|
shell execution with `set +o braceexpand'. */
|
|
/* #define BRACE_EXPANSION */
|
|
|
|
/* Define READLINE to get the nifty/glitzy editing features.
|
|
This is on by default. You can turn it off interactively
|
|
with the -nolineediting flag. */
|
|
/* #define READLINE */
|
|
|
|
/* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
|
|
This is unrelated to READLINE. */
|
|
/* #define BANG_HISTORY */
|
|
|
|
/* Define HISTORY if you want to have access to previously typed commands.
|
|
|
|
If both HISTORY and READLINE are defined, you can get at the commands
|
|
with line editing commands, and you can directly manipulate the history
|
|
from the command line.
|
|
|
|
If only HISTORY is defined, the `fc' and `history' builtins are
|
|
available. */
|
|
/* #define HISTORY */
|
|
|
|
#if defined (BANG_HISTORY) && !defined (HISTORY)
|
|
/* BANG_HISTORY requires HISTORY. */
|
|
# define HISTORY
|
|
#endif /* BANG_HISTORY && !HISTORY */
|
|
|
|
#if defined (READLINE) && !defined (HISTORY)
|
|
# define HISTORY
|
|
#endif
|
|
|
|
/* The default value of the PATH variable. */
|
|
#define DEFAULT_PATH_VALUE \
|
|
"/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:."
|
|
|
|
/* The value for PATH when invoking `command -p'. This is only used when
|
|
the Posix.2 confstr () function, or CS_PATH define are not present. */
|
|
#define STANDARD_UTILS_PATH \
|
|
"/bin:/usr/bin:/usr/ucb:/usr/sbin:/sbin:/etc:/usr/etc:/usr/lib"
|
|
|
|
/* Put system-specific default mail directories here. */
|
|
#if defined (__bsdi__) || defined (__FreeBSD__) || defined (__NetBSD__)
|
|
# define DEFAULT_MAIL_PATH "/var/mail/"
|
|
#endif
|
|
|
|
#if !defined (DEFAULT_MAIL_PATH)
|
|
#if defined (USG)
|
|
# define DEFAULT_MAIL_PATH "/usr/mail/"
|
|
#else
|
|
# define DEFAULT_MAIL_PATH "/usr/spool/mail/"
|
|
#endif
|
|
#endif
|
|
|
|
/* Define V9_ECHO if you want to give the echo builtin backslash-escape
|
|
interpretation using the -e option, in the style of the Bell Labs 9th
|
|
Edition version of echo. */
|
|
#define V9_ECHO
|
|
|
|
/* Define DEFAULT_ECHO_TO_USG if you want the echo builtin to interpret
|
|
the backslash-escape characters by default, like the System V echo.
|
|
This requires that V9_ECHO be defined. */
|
|
/* #define DEFAULT_ECHO_TO_USG */
|
|
#if !defined (V9_ECHO)
|
|
# undef DEFAULT_ECHO_TO_USG
|
|
#endif
|
|
|
|
/* Define CONTINUE_AFTER_KILL_ERROR if you want the kill command to
|
|
continue processing arguments after one of them fails. */
|
|
#define CONTINUE_AFTER_KILL_ERROR
|
|
|
|
/* Define BREAK_COMPLAINS if you want the non-standard, but useful
|
|
error messages about `break' and `continue' out of context. */
|
|
#define BREAK_COMPLAINS
|
|
|
|
/* Define GETOPTS_BUILTIN if you want the Posix.2 `getopts' shell builtin
|
|
compiled into the shell. */
|
|
#define GETOPTS_BUILTIN
|
|
|
|
/* When ALLOW_RIGID_POSIX_COMPLIANCE is defined, you can turn on strictly
|
|
Posix compliant behaviour by setting the environment variable
|
|
POSIXLY_CORRECT. */
|
|
#define ALLOW_RIGID_POSIX_COMPLIANCE
|
|
|
|
/* Define RESTRICTED_SHELL if you want the generated shell to have the
|
|
ability to be a restricted one. The shell thus generated can become
|
|
restricted by being run with the name "rbash", or by setting the -r
|
|
flag. */
|
|
/* #define RESTRICTED_SHELL */
|
|
|
|
/* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
|
|
shell builtin "foo", even if it has been disabled with "enable -n foo". */
|
|
/* #define DISABLED_BUILTINS */
|
|
|
|
/* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
|
|
substitution features "<(file)". */
|
|
/* Right now, you cannot do this on machines without fully operational
|
|
FIFO support. This currently include NeXT and Alliant. */
|
|
#if !defined (MKFIFO_MISSING)
|
|
# define PROCESS_SUBSTITUTION
|
|
#endif /* !MKFIFO_MISSING */
|
|
|
|
/* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
|
|
characters in PS1 and PS2 expanded. Variable expansion will still be
|
|
performed. */
|
|
/* #define PROMPT_STRING_DECODE */
|
|
|
|
/* Define BUFFERED_INPUT if you want the shell to do its own input
|
|
buffering. */
|
|
#define BUFFERED_INPUT
|
|
|
|
/* Define INTERACTIVE_COMMENTS if you want # comments to work by default
|
|
when the shell is interactive, as Posix.2a specifies. */
|
|
#define INTERACTIVE_COMMENTS
|
|
|
|
/* Define ONESHOT if you want sh -c 'command' to avoid forking to execute
|
|
`command' whenever possible. */
|
|
#define ONESHOT
|
|
|
|
/* Default primary and secondary prompt strings. */
|
|
#define PPROMPT "bash\\$ "
|
|
#define SPROMPT "> "
|
|
|
|
/* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
|
|
select word in word_list; do command_list; done */
|
|
/* #define SELECT_COMMAND */
|
|
|
|
#endif /* !_CONFIG_H_ */
|