commit bash-20091119 snapshot

This commit is contained in:
Chet Ramey
2011-12-08 20:21:07 -05:00
parent e6062848eb
commit cd0ef72721
28 changed files with 2754 additions and 288 deletions
+6 -4
View File
@@ -338,21 +338,23 @@ Shell Compatibility Level
Bash-3.2 introduced the concept of a `shell compatibility level', specified
as a set of options to the shopt builtin (compat31, compat32, compat40 at
this writing). There is only one current compatibility level -- each
option is mutually exclusive.
option is mutually exclusive. This list does not mention behavior that is
standard for a particular version (e.g., setting compat32 means that quoting
the rhs of the regexp matching operator quotes special regexp characters in
the word, which is default behavior in bash-3.2 and above).
compat31 set
- the < and > operators to the [[ command do not consider the current
locale when comparing strings
- quoting the rhs of the regexp matching operator (=~) has no
special effect
compat32 set
- the < and > operators to the [[ command do not consider the current
locale when comparing strings
- quoting the rhs of the regexp matching operator (=~) has no
special effect
compat40 set
- the < and > operators to the [[ command do not consider the current
locale when comparing strings
- interrupting a command list such as "a ; b ; c" causes the execution
of the entire list to be aborted
+45
View File
@@ -9160,3 +9160,48 @@ builtins/printf.def
- in getintmax(), in the case of a conversion error, return the partial
value accumulated so far, which is suppose to be what
strtoimax/strtoll/strtol returns
11/18
-----
builtins/{common.h,shopt.def},shell.c
- changed shopt variable "set functions" to take the option name as
the first argument; changed function prototypes and callers
builtins/shopt.def
- change set_compatibility_level() to turn off other compatNN options
when one is set -- enforce mutual exclusivity. Fixes problem noted
by Jan Schampera <jan.schampera@web.de>
11/19
-----
lib/readline/rltty.c
- make sure prepare_terminal_settings() tests for the presence of
ECHOCTL before using it. Fixes bug reported by Joachim Schmitz
<schmitz@hp.com>
config-top.h
- new WORDEXP_OPTION define (off by default)
shell.c
- don't include the --wordexp option or the supporting function
(run_wordexp) if WORDEXP_OPTION is not defined. Suggested by
Aharon Robbins.
execute_cmd.c
- in execute_cond_node, turn on comsub_ignore_return if the flags
indicate we're ignoring the return value before calling
cond_expand_word. Fixes bug reported by Anirban Sinha
<asinha@zeugmasystems.com>
11/20
-----
lib/sh/snprintf.c,builtins/printf.def
- change check for HAVE_ASPRINTF and HAVE_SNPRINTF to check if value
is 1 or 0 rather than whether they are defined or not. This allows
a value of 0 to enable function replacement
configure.in,aclocal.m4
- new autoconf macro, BASH_FUNC_SNPRINTF, checks for snprintf present
and working as C99 specifies with a zero length argument. Idea
from Greg Wooledge <wooledg@eeg.ccf.org>
- new macro BASH_FUNC_VSNPRINTF, does same thing for vsnprintf
+57 -1
View File
@@ -8141,7 +8141,7 @@ lib/readline/display.c
6/5
---
doc/{bash.1,bashref.texi
doc/{bash.1,bashref.texi}
- added some more explanation of the inheritance of the ERR trap at
the suggestion of Thomas Pospisek <tpo@sourcepole.ch>
@@ -9151,3 +9151,59 @@ variables.c
array, an indexed array, or a scalar. Fixes Ubuntu bug #471504
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/471504 reported
by AJ Slater <aj.slater@gmail.com>
[bash-4.1-beta frozen]
11/11
-----
builtins/printf.def
- in getintmax(), in the case of a conversion error, return the partial
value accumulated so far, which is suppose to be what
strtoimax/strtoll/strtol returns
11/18
-----
builtins/{common.h,shopt.def},shell.c
- changed shopt variable "set functions" to take the option name as
the first argument; changed function prototypes and callers
builtins/shopt.def
- change set_compatibility_level() to turn off other compatNN options
when one is set -- enforce mutual exclusivity. Fixes problem noted
by Jan Schampera <jan.schampera@web.de>
11/19
-----
lib/readline/rltty.c
- make sure prepare_terminal_settings() tests for the presence of
ECHOCTL before using it. Fixes bug reported by Joachim Schmitz
<schmitz@hp.com>
config-top.h
- new WORDEXP_OPTION define (off by default)
shell.c
- don't include the --wordexp option or the supporting function
(run_wordexp) if WORDEXP_OPTION is not defined. Suggested by
Aharon Robbins.
execute_cmd.c
- in execute_cond_node, turn on comsub_ignore_return if the flags
indicate we're ignoring the return value before calling
cond_expand_word. Fixes bug reported by Anirban Sinha
<asinha@zeugmasystems.com>
11/20
-----
lib/sh/snprintf.c,builtins/printf.def
- change check for HAVE_ASPRINTF and HAVE_SNPRINTF to check if value
is 1 or 0 rather than whether they are defined or not. This allows
a value of 0 to enable function replacement
configure.in,aclocal.m4
- new autoconf macro, BASH_FUNC_SNPRINTF, checks for snprintf present
and working as C99 specifies with a zero length argument. Idea
from Greg Wooledge <wooledg@eeg.ccf.org>
Vendored
+84
View File
@@ -4031,3 +4031,87 @@ AC_DEFUN([BASH_FUNC_FPURGE],
AC_CHECK_FUNCS_ONCE([__fpurge])
AC_CHECK_DECLS([fpurge], , , [#include <stdio.h>])
])
AC_DEFUN([BASH_FUNC_SNPRINTF],
[
AC_CHECK_FUNCS_ONCE([snprintf])
if test X$ac_cv_func_snprintf = Xyes; then
AC_CACHE_CHECK([for standard-conformant snprintf], [bash_cv_func_snprintf],
[AC_TRY_RUN([
#include <stdio.h>
main()
{
int n;
n = snprintf (0, 0, "%s", "0123456");
exit(n != 7);
}
], bash_cv_func_snprintf=yes, bash_cv_func_snprintf=no,
[AC_MSG_WARN([cannot check standard snprintf if cross-compiling])
bash_cv_func_snprintf=yes]
)])
if test $bash_cv_func_snprintf = no; then
ac_cv_func_snprintf=no
fi
fi
if test $ac_cv_func_snprintf = no; then
AC_DEFINE(HAVE_SNPRINTF, 0,
[Define if you have a standard-conformant snprintf function.])
fi
])
AC_DEFUN([BASH_FUNC_VSNPRINTF],
[
AC_CHECK_FUNCS_ONCE([vsnprintf])
if test X$ac_cv_func_vsnprintf = Xyes; then
AC_CACHE_CHECK([for standard-conformant vsnprintf], [bash_cv_func_vsnprintf],
[AC_TRY_RUN([
#if HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include <stdio.h>
#include <stdlib.h>
static int
#if HAVE_STDARG_H
foo(const char *fmt, ...)
#else
foo(format, va_alist)
const char *format;
va_dcl
#endif
{
va_list args;
int n;
#if HAVE_STDARG_H
va_start(args, fmt);
#else
va_start(args);
#endif
n = vsnprintf(0, 0, fmt, args);
va_end (args);
return n;
}
main()
{
int n;
n = foo("%s", "0123456");
exit(n != 7);
}
], bash_cv_func_vsnprintf=yes, bash_cv_func_vsnprintf=no,
[AC_MSG_WARN([cannot check standard vsnprintf if cross-compiling])
bash_cv_func_vsnprintf=yes]
)])
if test $bash_cv_func_vsnprintf = no; then
ac_cv_func_vsnprintf=no
fi
fi
if test $ac_cv_func_vsnprintf = no; then
AC_DEFINE(HAVE_VSNPRINTF, 0,
[Define if you have a standard-conformant vsnprintf function.])
fi
])
Vendored
+90
View File
@@ -1759,6 +1759,13 @@ if test $bash_cv_type_wint_t = yes; then
AC_DEFINE(HAVE_WINT_T, 1, [systems should define this type here])
fi
if test "$am_cv_func_iconv" = yes; then
OLDLIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
AC_CHECK_FUNCS(locale_charset)
LIBS="$OLDLIBS"
fi
])
dnl need: prefix exec_prefix libdir includedir CC TERMCAP_LIB
@@ -4024,3 +4031,86 @@ AC_DEFUN([BASH_FUNC_FPURGE],
AC_CHECK_FUNCS_ONCE([__fpurge])
AC_CHECK_DECLS([fpurge], , , [#include <stdio.h>])
])
AC_DEFUN([BASH_FUNC_SNPRINTF],
[
AC_CHECK_FUNCS_ONCE([snprintf])
if test X$ac_cv_func_snprintf = Xyes; then
AC_CACHE_CHECK([for standard-conformant snprintf], [bash_cv_func_snprintf],
[AC_TRY_RUN([
#include <stdio.h>
main()
{
int n;
n = snprintf (0, 0, "%s", "0123456");
exit(n != 7);
}
], bash_cv_func_snprintf=yes, bash_cv_func_snprintf=no,
[AC_MSG_WARN([cannot check snprintf if cross-compiling])
bash_cv_func_snprintf=yes]
)])
if test $bash_cv_func_snprintf = no; then
ac_cv_func_snprintf=no
fi
fi
if test $ac_cv_func_snprintf = no; then
AC_DEFINE(HAVE_SNPRINTF, 0,
[Define if you have a standard-conformant snprintf function.])
fi
])
AC_DEFUN([BASH_FUNC_VSNPRINTF],
[
AC_CHECK_FUNCS_ONCE([vsnprintf])
if test X$ac_cv_func_vsnprintf = Xyes; then
AC_CACHE_CHECK([for standard-conformant vsnprintf], [bash_cv_func_vsnprintf],
[AC_TRY_RUN([
#if HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include <stdio.h>
static int
#if HAVE_STDARG_H
foo(const char *fmt, ...)
#else
foo(format, va_alist)
const char *format;
va_dcl
#endif
{
va_list args;
int n;
#if HAVE_STDARG_H
va_start(args, fmt);
#else
va_start(args);
#endif
n = vsnprintf(0, 0, fmt, args);
va_end (args);
return n;
}
main()
{
int n;
n = foo("%s", "0123456");
exit(n != 7);
}
], bash_cv_func_vsnprintf=yes, bash_cv_func_vsnprintf=no,
[AC_MSG_WARN([cannot check vsnprintf if cross-compiling])
bash_cv_func_vsnprintf=yes]
)])
if test $bash_cv_func_vsnprintf = no; then
ac_cv_func_vsnprintf=no
fi
fi
if test $ac_cv_func_vsnprintf = no; then
AC_DEFINE(HAVE_VSNPRINTF, 0,
[Define if you have a standard-conformant vsnprintf function.])
fi
])
+220 -14
View File
@@ -1,7 +1,7 @@
@%:@! /bin/sh
@%:@ From configure.in for Bash 4.1, version 4.016.
@%:@ From configure.in for Bash 4.1, version 4.018.
@%:@ Guess values for system-dependent variables and create Makefiles.
@%:@ Generated by GNU Autoconf 2.63 for bash 4.1-beta.
@%:@ Generated by GNU Autoconf 2.63 for bash 4.1-rc.
@%:@
@%:@ Report bugs to <bug-bash@gnu.org>.
@%:@
@@ -597,8 +597,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='bash'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='4.1-beta'
PACKAGE_STRING='bash 4.1-beta'
PACKAGE_VERSION='4.1-rc'
PACKAGE_STRING='bash 4.1-rc'
PACKAGE_BUGREPORT='bug-bash@gnu.org'
ac_unique_file="shell.h"
@@ -1411,7 +1411,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures bash 4.1-beta to adapt to many kinds of systems.
\`configure' configures bash 4.1-rc to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1476,7 +1476,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bash 4.1-beta:";;
short | recursive ) echo "Configuration of bash 4.1-rc:";;
esac
cat <<\_ACEOF
@@ -1652,7 +1652,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
bash configure 4.1-beta
bash configure 4.1-rc
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1666,7 +1666,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bash $as_me 4.1-beta, which was
It was created by bash $as_me 4.1-rc, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -1948,6 +1948,8 @@ ac_header_list="$ac_header_list unistd.h"
ac_func_list="$ac_func_list alarm"
ac_func_list="$ac_func_list fpurge"
ac_func_list="$ac_func_list __fpurge"
ac_func_list="$ac_func_list snprintf"
ac_func_list="$ac_func_list vsnprintf"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
@@ -2078,7 +2080,7 @@ ac_config_headers="$ac_config_headers config.h"
BASHVERS=4.1
RELSTATUS=beta
RELSTATUS=rc
case "$RELSTATUS" in
alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
@@ -13681,9 +13683,7 @@ done
for ac_func in vsnprintf snprintf vasprintf asprintf
for ac_func in vasprintf asprintf
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -28683,6 +28683,212 @@ _ACEOF
fi
if test X$ac_cv_func_snprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
$as_echo_n "checking for standard-conformant snprintf... " >&6; }
if test "${bash_cv_func_snprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
bash_cv_func_snprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
main()
{
int n;
n = snprintf (0, 0, "%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_snprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_snprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
$as_echo "$bash_cv_func_snprintf" >&6; }
if test $bash_cv_func_snprintf = no; then
ac_cv_func_snprintf=no
fi
fi
if test $ac_cv_func_snprintf = no; then
cat >>confdefs.h <<\_ACEOF
@%:@define HAVE_SNPRINTF 0
_ACEOF
fi
if test X$ac_cv_func_vsnprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
if test "${bash_cv_func_vsnprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
bash_cv_func_vsnprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include <stdio.h>
#include <stdlib.h>
static int
#if HAVE_STDARG_H
foo(const char *fmt, ...)
#else
foo(format, va_alist)
const char *format;
va_dcl
#endif
{
va_list args;
int n;
#if HAVE_STDARG_H
va_start(args, fmt);
#else
va_start(args);
#endif
n = vsnprintf(0, 0, fmt, args);
va_end (args);
return n;
}
main()
{
int n;
n = foo("%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_vsnprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_vsnprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
$as_echo "$bash_cv_func_vsnprintf" >&6; }
if test $bash_cv_func_vsnprintf = no; then
ac_cv_func_vsnprintf=no
fi
fi
if test $ac_cv_func_vsnprintf = no; then
cat >>confdefs.h <<\_ACEOF
@%:@define HAVE_VSNPRINTF 0
_ACEOF
fi
if test "$ac_cv_func_putenv" = "yes"; then
@@ -30964,7 +31170,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by bash $as_me 4.1-beta, which was
This file was extended by bash $as_me 4.1-rc, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -31027,7 +31233,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
bash config.status 4.1-beta
bash config.status 4.1-rc
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+11 -11
View File
@@ -15,25 +15,25 @@
'configure.in'
],
{
'AM_PROG_F77_C_O' => 1,
'_LT_AC_TAGCONFIG' => 1,
'm4_pattern_forbid' => 1,
'AM_PROG_F77_C_O' => 1,
'AC_INIT' => 1,
'AC_CANONICAL_TARGET' => 1,
'm4_pattern_forbid' => 1,
'_AM_COND_IF' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AC_CANONICAL_TARGET' => 1,
'AC_SUBST' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AC_FC_SRCEXT' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_PROG_LIBTOOL' => 1,
'AM_INIT_AUTOMAKE' => 1,
'AC_CONFIG_SUBDIRS' => 1,
'AM_AUTOMAKE_VERSION' => 1,
'LT_CONFIG_LTDL_DIR' => 1,
'AC_CONFIG_LINKS' => 1,
'AC_REQUIRE_AUX_FILE' => 1,
'LT_SUPPORTED_TAG' => 1,
'AC_CONFIG_LINKS' => 1,
'm4_sinclude' => 1,
'LT_SUPPORTED_TAG' => 1,
'AM_MAINTAINER_MODE' => 1,
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
'_m4_warn' => 1,
@@ -49,13 +49,13 @@
'AC_CANONICAL_BUILD' => 1,
'AC_FC_FREEFORM' => 1,
'AH_OUTPUT' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'_AM_SUBST_NOTMAKE' => 1,
'AM_PROG_CC_C_O' => 1,
'm4_pattern_allow' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'sinclude' => 1,
'AM_CONDITIONAL' => 1,
'm4_pattern_allow' => 1,
'AM_PROG_CC_C_O' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AM_CONDITIONAL' => 1,
'AC_CONFIG_HEADERS' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'm4_include' => 1,
+221 -199
View File
@@ -1,4 +1,4 @@
m4trace:configure.in:29: -1- AC_INIT([bash], [4.1-beta], [bug-bash@gnu.org])
m4trace:configure.in:29: -1- AC_INIT([bash], [4.1-rc], [bug-bash@gnu.org])
m4trace:configure.in:29: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:29: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:29: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
@@ -1400,10 +1400,6 @@ m4trace:configure.in:730: -1- AH_OUTPUT([HAVE_TZSET], [/* Define to 1 if you hav
#undef HAVE_TZSET])
m4trace:configure.in:730: -1- AH_OUTPUT([HAVE_UNSETENV], [/* Define to 1 if you have the `unsetenv\' function. */
#undef HAVE_UNSETENV])
m4trace:configure.in:736: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */
#undef HAVE_VSNPRINTF])
m4trace:configure.in:736: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */
#undef HAVE_SNPRINTF])
m4trace:configure.in:736: -1- AH_OUTPUT([HAVE_VASPRINTF], [/* Define to 1 if you have the `vasprintf\' function. */
#undef HAVE_VASPRINTF])
m4trace:configure.in:736: -1- AH_OUTPUT([HAVE_ASPRINTF], [/* Define to 1 if you have the `asprintf\' function. */
@@ -2286,116 +2282,142 @@ aclocal.m4:829: BASH_FUNC_STRCOLL is expanded from...
configure.in:930: the top level])
m4trace:configure.in:930: -1- AC_DEFINE_TRACE_LITERAL([STRCOLL_BROKEN])
m4trace:configure.in:930: -1- m4_pattern_allow([^STRCOLL_BROKEN$])
m4trace:configure.in:936: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
m4trace:configure.in:931: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */
#undef HAVE_SNPRINTF])
m4trace:configure.in:931: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:4035: BASH_FUNC_SNPRINTF is expanded from...
configure.in:931: the top level])
m4trace:configure.in:931: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SNPRINTF])
m4trace:configure.in:931: -1- m4_pattern_allow([^HAVE_SNPRINTF$])
m4trace:configure.in:931: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define if you have a standard-conformant snprintf function. */
#undef HAVE_SNPRINTF])
m4trace:configure.in:932: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */
#undef HAVE_VSNPRINTF])
m4trace:configure.in:932: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:4063: BASH_FUNC_VSNPRINTF is expanded from...
configure.in:932: the top level])
m4trace:configure.in:932: -1- AC_DEFINE_TRACE_LITERAL([HAVE_VSNPRINTF])
m4trace:configure.in:932: -1- m4_pattern_allow([^HAVE_VSNPRINTF$])
m4trace:configure.in:932: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define if you have a standard-conformant vsnprintf function. */
#undef HAVE_VSNPRINTF])
m4trace:configure.in:938: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2527: AC_TRY_LINK is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:624: BASH_FUNC_STD_PUTENV is expanded from...
configure.in:936: the top level])
m4trace:configure.in:936: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_PUTENV])
m4trace:configure.in:936: -1- m4_pattern_allow([^HAVE_STD_PUTENV$])
configure.in:938: the top level])
m4trace:configure.in:938: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_PUTENV])
m4trace:configure.in:938: -1- m4_pattern_allow([^HAVE_STD_PUTENV$])
m4trace:configure.in:941: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
m4trace:configure.in:940: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_PUTENV])
m4trace:configure.in:940: -1- m4_pattern_allow([^HAVE_STD_PUTENV$])
m4trace:configure.in:943: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2527: AC_TRY_LINK is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:654: BASH_FUNC_STD_UNSETENV is expanded from...
configure.in:941: the top level])
m4trace:configure.in:941: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_UNSETENV])
m4trace:configure.in:941: -1- m4_pattern_allow([^HAVE_STD_UNSETENV$])
configure.in:943: the top level])
m4trace:configure.in:943: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_UNSETENV])
m4trace:configure.in:943: -1- m4_pattern_allow([^HAVE_STD_UNSETENV$])
m4trace:configure.in:946: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
m4trace:configure.in:945: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STD_UNSETENV])
m4trace:configure.in:945: -1- m4_pattern_allow([^HAVE_STD_UNSETENV$])
m4trace:configure.in:948: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:878: BASH_FUNC_PRINTF_A_FORMAT is expanded from...
configure.in:946: the top level])
m4trace:configure.in:946: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PRINTF_A_FORMAT])
m4trace:configure.in:946: -1- m4_pattern_allow([^HAVE_PRINTF_A_FORMAT$])
m4trace:configure.in:949: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1297: BASH_SYS_REINSTALL_SIGHANDLERS is expanded from...
configure.in:949: the top level])
m4trace:configure.in:949: -1- AC_DEFINE_TRACE_LITERAL([MUST_REINSTALL_SIGHANDLERS])
m4trace:configure.in:949: -1- m4_pattern_allow([^MUST_REINSTALL_SIGHANDLERS$])
m4trace:configure.in:950: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1356: BASH_SYS_JOB_CONTROL_MISSING is expanded from...
configure.in:950: the top level])
m4trace:configure.in:950: -1- AC_DEFINE_TRACE_LITERAL([JOB_CONTROL_MISSING])
m4trace:configure.in:950: -1- m4_pattern_allow([^JOB_CONTROL_MISSING$])
configure.in:948: the top level])
m4trace:configure.in:948: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PRINTF_A_FORMAT])
m4trace:configure.in:948: -1- m4_pattern_allow([^HAVE_PRINTF_A_FORMAT$])
m4trace:configure.in:951: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1415: BASH_SYS_NAMED_PIPES is expanded from...
aclocal.m4:1297: BASH_SYS_REINSTALL_SIGHANDLERS is expanded from...
configure.in:951: the top level])
m4trace:configure.in:951: -1- AC_DEFINE_TRACE_LITERAL([NAMED_PIPES_MISSING])
m4trace:configure.in:951: -1- m4_pattern_allow([^NAMED_PIPES_MISSING$])
m4trace:configure.in:954: -1- AC_DEFINE_TRACE_LITERAL([GWINSZ_IN_SYS_IOCTL])
m4trace:configure.in:954: -1- m4_pattern_allow([^GWINSZ_IN_SYS_IOCTL$])
m4trace:configure.in:954: -1- AH_OUTPUT([GWINSZ_IN_SYS_IOCTL], [/* Define to 1 if `TIOCGWINSZ\' requires <sys/ioctl.h>. */
m4trace:configure.in:951: -1- AC_DEFINE_TRACE_LITERAL([MUST_REINSTALL_SIGHANDLERS])
m4trace:configure.in:951: -1- m4_pattern_allow([^MUST_REINSTALL_SIGHANDLERS$])
m4trace:configure.in:952: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1356: BASH_SYS_JOB_CONTROL_MISSING is expanded from...
configure.in:952: the top level])
m4trace:configure.in:952: -1- AC_DEFINE_TRACE_LITERAL([JOB_CONTROL_MISSING])
m4trace:configure.in:952: -1- m4_pattern_allow([^JOB_CONTROL_MISSING$])
m4trace:configure.in:953: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1415: BASH_SYS_NAMED_PIPES is expanded from...
configure.in:953: the top level])
m4trace:configure.in:953: -1- AC_DEFINE_TRACE_LITERAL([NAMED_PIPES_MISSING])
m4trace:configure.in:953: -1- m4_pattern_allow([^NAMED_PIPES_MISSING$])
m4trace:configure.in:956: -1- AC_DEFINE_TRACE_LITERAL([GWINSZ_IN_SYS_IOCTL])
m4trace:configure.in:956: -1- m4_pattern_allow([^GWINSZ_IN_SYS_IOCTL$])
m4trace:configure.in:956: -1- AH_OUTPUT([GWINSZ_IN_SYS_IOCTL], [/* Define to 1 if `TIOCGWINSZ\' requires <sys/ioctl.h>. */
#undef GWINSZ_IN_SYS_IOCTL])
m4trace:configure.in:955: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
m4trace:configure.in:957: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1496: BASH_HAVE_TIOCSTAT is expanded from...
configure.in:955: the top level])
m4trace:configure.in:955: -1- AC_DEFINE_TRACE_LITERAL([TIOCSTAT_IN_SYS_IOCTL])
m4trace:configure.in:955: -1- m4_pattern_allow([^TIOCSTAT_IN_SYS_IOCTL$])
m4trace:configure.in:956: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
configure.in:957: the top level])
m4trace:configure.in:957: -1- AC_DEFINE_TRACE_LITERAL([TIOCSTAT_IN_SYS_IOCTL])
m4trace:configure.in:957: -1- m4_pattern_allow([^TIOCSTAT_IN_SYS_IOCTL$])
m4trace:configure.in:958: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1508: BASH_HAVE_FIONREAD is expanded from...
configure.in:956: the top level])
m4trace:configure.in:956: -1- AC_DEFINE_TRACE_LITERAL([FIONREAD_IN_SYS_IOCTL])
m4trace:configure.in:956: -1- m4_pattern_allow([^FIONREAD_IN_SYS_IOCTL$])
m4trace:configure.in:958: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
configure.in:958: the top level])
m4trace:configure.in:958: -1- AC_DEFINE_TRACE_LITERAL([FIONREAD_IN_SYS_IOCTL])
m4trace:configure.in:958: -1- m4_pattern_allow([^FIONREAD_IN_SYS_IOCTL$])
m4trace:configure.in:960: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1934: BASH_CHECK_WCONTINUED is expanded from...
configure.in:958: the top level])
m4trace:configure.in:958: -1- AC_DEFINE_TRACE_LITERAL([WCONTINUED_BROKEN])
m4trace:configure.in:958: -1- m4_pattern_allow([^WCONTINUED_BROKEN$])
m4trace:configure.in:961: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
configure.in:960: the top level])
m4trace:configure.in:960: -1- AC_DEFINE_TRACE_LITERAL([WCONTINUED_BROKEN])
m4trace:configure.in:960: -1- m4_pattern_allow([^WCONTINUED_BROKEN$])
m4trace:configure.in:963: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1526: BASH_CHECK_SPEED_T is expanded from...
configure.in:961: the top level])
m4trace:configure.in:961: -1- AC_DEFINE_TRACE_LITERAL([SPEED_T_IN_SYS_TYPES])
m4trace:configure.in:961: -1- m4_pattern_allow([^SPEED_T_IN_SYS_TYPES$])
m4trace:configure.in:962: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPW_DECLS])
m4trace:configure.in:962: -1- m4_pattern_allow([^HAVE_GETPW_DECLS$])
m4trace:configure.in:963: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
configure.in:963: the top level])
m4trace:configure.in:963: -1- AC_DEFINE_TRACE_LITERAL([SPEED_T_IN_SYS_TYPES])
m4trace:configure.in:963: -1- m4_pattern_allow([^SPEED_T_IN_SYS_TYPES$])
m4trace:configure.in:964: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPW_DECLS])
m4trace:configure.in:964: -1- m4_pattern_allow([^HAVE_GETPW_DECLS$])
m4trace:configure.in:965: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2592: AC_TRY_RUN is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1653: BASH_CHECK_RTSIGS is expanded from...
configure.in:963: the top level])
m4trace:configure.in:963: -1- AC_DEFINE_TRACE_LITERAL([UNUSABLE_RT_SIGNALS])
m4trace:configure.in:963: -1- m4_pattern_allow([^UNUSABLE_RT_SIGNALS$])
m4trace:configure.in:964: -1- AC_SUBST([SIGLIST_O])
m4trace:configure.in:964: -1- AC_SUBST_TRACE([SIGLIST_O])
m4trace:configure.in:964: -1- m4_pattern_allow([^SIGLIST_O$])
m4trace:configure.in:968: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
configure.in:965: the top level])
m4trace:configure.in:965: -1- AC_DEFINE_TRACE_LITERAL([UNUSABLE_RT_SIGNALS])
m4trace:configure.in:965: -1- m4_pattern_allow([^UNUSABLE_RT_SIGNALS$])
m4trace:configure.in:966: -1- AC_SUBST([SIGLIST_O])
m4trace:configure.in:966: -1- AC_SUBST_TRACE([SIGLIST_O])
m4trace:configure.in:966: -1- m4_pattern_allow([^SIGLIST_O$])
m4trace:configure.in:970: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1605: BASH_CHECK_KERNEL_RLIMIT is expanded from...
configure.in:968: the top level])
m4trace:configure.in:968: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
configure.in:970: the top level])
m4trace:configure.in:970: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:2462: AC_COMPILE_IFELSE is expanded from...
@@ -2403,140 +2425,140 @@ You should run autoupdate.], [../../lib/autoconf/general.m4:2470: AC_TRY_COMPILE
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
aclocal.m4:1605: BASH_CHECK_KERNEL_RLIMIT is expanded from...
configure.in:968: the top level])
m4trace:configure.in:968: -1- AC_DEFINE_TRACE_LITERAL([RLIMIT_NEEDS_KERNEL])
m4trace:configure.in:968: -1- m4_pattern_allow([^RLIMIT_NEEDS_KERNEL$])
m4trace:configure.in:978: -1- AC_SUBST([TERMCAP_LIB])
m4trace:configure.in:978: -1- AC_SUBST_TRACE([TERMCAP_LIB])
m4trace:configure.in:978: -1- m4_pattern_allow([^TERMCAP_LIB$])
m4trace:configure.in:979: -1- AC_SUBST([TERMCAP_DEP])
m4trace:configure.in:979: -1- AC_SUBST_TRACE([TERMCAP_DEP])
m4trace:configure.in:979: -1- m4_pattern_allow([^TERMCAP_DEP$])
m4trace:configure.in:981: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_FD])
m4trace:configure.in:981: -1- m4_pattern_allow([^HAVE_DEV_FD$])
m4trace:configure.in:981: -1- AC_DEFINE_TRACE_LITERAL([DEV_FD_PREFIX])
m4trace:configure.in:981: -1- m4_pattern_allow([^DEV_FD_PREFIX$])
m4trace:configure.in:981: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_FD])
m4trace:configure.in:981: -1- m4_pattern_allow([^HAVE_DEV_FD$])
m4trace:configure.in:981: -1- AC_DEFINE_TRACE_LITERAL([DEV_FD_PREFIX])
m4trace:configure.in:981: -1- m4_pattern_allow([^DEV_FD_PREFIX$])
m4trace:configure.in:982: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_STDIN])
m4trace:configure.in:982: -1- m4_pattern_allow([^HAVE_DEV_STDIN$])
m4trace:configure.in:983: -1- AC_DEFINE_TRACE_LITERAL([DEFAULT_MAIL_DIRECTORY])
m4trace:configure.in:983: -1- m4_pattern_allow([^DEFAULT_MAIL_DIRECTORY$])
m4trace:configure.in:990: -1- AC_DEFINE_TRACE_LITERAL([JOB_CONTROL])
m4trace:configure.in:990: -1- m4_pattern_allow([^JOB_CONTROL$])
m4trace:configure.in:996: -1- AC_SUBST([JOBS_O])
m4trace:configure.in:996: -1- AC_SUBST_TRACE([JOBS_O])
m4trace:configure.in:996: -1- m4_pattern_allow([^JOBS_O$])
m4trace:configure.in:1009: -1- AC_DEFINE_TRACE_LITERAL([SVR4_2])
m4trace:configure.in:1009: -1- m4_pattern_allow([^SVR4_2$])
m4trace:configure.in:1010: -1- AC_DEFINE_TRACE_LITERAL([SVR4])
m4trace:configure.in:1010: -1- m4_pattern_allow([^SVR4$])
m4trace:configure.in:1011: -1- AC_DEFINE_TRACE_LITERAL([SVR4])
m4trace:configure.in:1011: -1- m4_pattern_allow([^SVR4$])
m4trace:configure.in:1012: -1- AC_DEFINE_TRACE_LITERAL([SVR5])
m4trace:configure.in:1012: -1- m4_pattern_allow([^SVR5$])
m4trace:configure.in:1031: -1- AC_DEFINE_TRACE_LITERAL([PGRP_PIPE])
m4trace:configure.in:1031: -1- m4_pattern_allow([^PGRP_PIPE$])
m4trace:configure.in:1078: -1- AC_SUBST([SHOBJ_CC])
m4trace:configure.in:1078: -1- AC_SUBST_TRACE([SHOBJ_CC])
m4trace:configure.in:1078: -1- m4_pattern_allow([^SHOBJ_CC$])
m4trace:configure.in:1079: -1- AC_SUBST([SHOBJ_CFLAGS])
m4trace:configure.in:1079: -1- AC_SUBST_TRACE([SHOBJ_CFLAGS])
m4trace:configure.in:1079: -1- m4_pattern_allow([^SHOBJ_CFLAGS$])
m4trace:configure.in:1080: -1- AC_SUBST([SHOBJ_LD])
m4trace:configure.in:1080: -1- AC_SUBST_TRACE([SHOBJ_LD])
m4trace:configure.in:1080: -1- m4_pattern_allow([^SHOBJ_LD$])
m4trace:configure.in:1081: -1- AC_SUBST([SHOBJ_LDFLAGS])
m4trace:configure.in:1081: -1- AC_SUBST_TRACE([SHOBJ_LDFLAGS])
m4trace:configure.in:1081: -1- m4_pattern_allow([^SHOBJ_LDFLAGS$])
m4trace:configure.in:1082: -1- AC_SUBST([SHOBJ_XLDFLAGS])
m4trace:configure.in:1082: -1- AC_SUBST_TRACE([SHOBJ_XLDFLAGS])
m4trace:configure.in:1082: -1- m4_pattern_allow([^SHOBJ_XLDFLAGS$])
m4trace:configure.in:1083: -1- AC_SUBST([SHOBJ_LIBS])
m4trace:configure.in:1083: -1- AC_SUBST_TRACE([SHOBJ_LIBS])
m4trace:configure.in:1083: -1- m4_pattern_allow([^SHOBJ_LIBS$])
m4trace:configure.in:1084: -1- AC_SUBST([SHOBJ_STATUS])
m4trace:configure.in:1084: -1- AC_SUBST_TRACE([SHOBJ_STATUS])
m4trace:configure.in:1084: -1- m4_pattern_allow([^SHOBJ_STATUS$])
m4trace:configure.in:1116: -1- AC_SUBST([PROFILE_FLAGS])
m4trace:configure.in:1116: -1- AC_SUBST_TRACE([PROFILE_FLAGS])
m4trace:configure.in:1116: -1- m4_pattern_allow([^PROFILE_FLAGS$])
m4trace:configure.in:1118: -1- AC_SUBST([incdir])
m4trace:configure.in:1118: -1- AC_SUBST_TRACE([incdir])
m4trace:configure.in:1118: -1- m4_pattern_allow([^incdir$])
m4trace:configure.in:1119: -1- AC_SUBST([BUILD_DIR])
m4trace:configure.in:1119: -1- AC_SUBST_TRACE([BUILD_DIR])
m4trace:configure.in:1119: -1- m4_pattern_allow([^BUILD_DIR$])
m4trace:configure.in:1122: -1- AC_SUBST([datarootdir])
m4trace:configure.in:1122: -1- AC_SUBST_TRACE([datarootdir])
m4trace:configure.in:1122: -1- m4_pattern_allow([^datarootdir$])
m4trace:configure.in:1123: -1- AC_SUBST([localedir])
m4trace:configure.in:1123: -1- AC_SUBST_TRACE([localedir])
m4trace:configure.in:1123: -1- m4_pattern_allow([^localedir$])
m4trace:configure.in:1125: -1- AC_SUBST([YACC])
m4trace:configure.in:1125: -1- AC_SUBST_TRACE([YACC])
m4trace:configure.in:1125: -1- m4_pattern_allow([^YACC$])
m4trace:configure.in:1126: -1- AC_SUBST([AR])
m4trace:configure.in:1126: -1- AC_SUBST_TRACE([AR])
m4trace:configure.in:1126: -1- m4_pattern_allow([^AR$])
m4trace:configure.in:1127: -1- AC_SUBST([ARFLAGS])
m4trace:configure.in:1127: -1- AC_SUBST_TRACE([ARFLAGS])
m4trace:configure.in:1127: -1- m4_pattern_allow([^ARFLAGS$])
m4trace:configure.in:1129: -1- AC_SUBST([BASHVERS])
m4trace:configure.in:1129: -1- AC_SUBST_TRACE([BASHVERS])
m4trace:configure.in:1129: -1- m4_pattern_allow([^BASHVERS$])
m4trace:configure.in:1130: -1- AC_SUBST([RELSTATUS])
m4trace:configure.in:1130: -1- AC_SUBST_TRACE([RELSTATUS])
m4trace:configure.in:1130: -1- m4_pattern_allow([^RELSTATUS$])
m4trace:configure.in:1131: -1- AC_SUBST([DEBUG])
m4trace:configure.in:1131: -1- AC_SUBST_TRACE([DEBUG])
m4trace:configure.in:1131: -1- m4_pattern_allow([^DEBUG$])
m4trace:configure.in:1132: -1- AC_SUBST([MALLOC_DEBUG])
m4trace:configure.in:1132: -1- AC_SUBST_TRACE([MALLOC_DEBUG])
m4trace:configure.in:1132: -1- m4_pattern_allow([^MALLOC_DEBUG$])
m4trace:configure.in:1134: -1- AC_SUBST([host_cpu])
m4trace:configure.in:1134: -1- AC_SUBST_TRACE([host_cpu])
m4trace:configure.in:1134: -1- m4_pattern_allow([^host_cpu$])
m4trace:configure.in:1135: -1- AC_SUBST([host_vendor])
m4trace:configure.in:1135: -1- AC_SUBST_TRACE([host_vendor])
m4trace:configure.in:1135: -1- m4_pattern_allow([^host_vendor$])
m4trace:configure.in:1136: -1- AC_SUBST([host_os])
m4trace:configure.in:1136: -1- AC_SUBST_TRACE([host_os])
m4trace:configure.in:1136: -1- m4_pattern_allow([^host_os$])
m4trace:configure.in:1138: -1- AC_SUBST([LOCAL_LIBS])
m4trace:configure.in:1138: -1- AC_SUBST_TRACE([LOCAL_LIBS])
m4trace:configure.in:1138: -1- m4_pattern_allow([^LOCAL_LIBS$])
m4trace:configure.in:1139: -1- AC_SUBST([LOCAL_CFLAGS])
m4trace:configure.in:1139: -1- AC_SUBST_TRACE([LOCAL_CFLAGS])
m4trace:configure.in:1139: -1- m4_pattern_allow([^LOCAL_CFLAGS$])
m4trace:configure.in:1140: -1- AC_SUBST([LOCAL_LDFLAGS])
m4trace:configure.in:1140: -1- AC_SUBST_TRACE([LOCAL_LDFLAGS])
m4trace:configure.in:1140: -1- m4_pattern_allow([^LOCAL_LDFLAGS$])
m4trace:configure.in:1141: -1- AC_SUBST([LOCAL_DEFS])
m4trace:configure.in:1141: -1- AC_SUBST_TRACE([LOCAL_DEFS])
m4trace:configure.in:1141: -1- m4_pattern_allow([^LOCAL_DEFS$])
m4trace:configure.in:1146: -1- AC_CONFIG_FILES([Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
configure.in:970: the top level])
m4trace:configure.in:970: -1- AC_DEFINE_TRACE_LITERAL([RLIMIT_NEEDS_KERNEL])
m4trace:configure.in:970: -1- m4_pattern_allow([^RLIMIT_NEEDS_KERNEL$])
m4trace:configure.in:980: -1- AC_SUBST([TERMCAP_LIB])
m4trace:configure.in:980: -1- AC_SUBST_TRACE([TERMCAP_LIB])
m4trace:configure.in:980: -1- m4_pattern_allow([^TERMCAP_LIB$])
m4trace:configure.in:981: -1- AC_SUBST([TERMCAP_DEP])
m4trace:configure.in:981: -1- AC_SUBST_TRACE([TERMCAP_DEP])
m4trace:configure.in:981: -1- m4_pattern_allow([^TERMCAP_DEP$])
m4trace:configure.in:983: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_FD])
m4trace:configure.in:983: -1- m4_pattern_allow([^HAVE_DEV_FD$])
m4trace:configure.in:983: -1- AC_DEFINE_TRACE_LITERAL([DEV_FD_PREFIX])
m4trace:configure.in:983: -1- m4_pattern_allow([^DEV_FD_PREFIX$])
m4trace:configure.in:983: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_FD])
m4trace:configure.in:983: -1- m4_pattern_allow([^HAVE_DEV_FD$])
m4trace:configure.in:983: -1- AC_DEFINE_TRACE_LITERAL([DEV_FD_PREFIX])
m4trace:configure.in:983: -1- m4_pattern_allow([^DEV_FD_PREFIX$])
m4trace:configure.in:984: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_STDIN])
m4trace:configure.in:984: -1- m4_pattern_allow([^HAVE_DEV_STDIN$])
m4trace:configure.in:985: -1- AC_DEFINE_TRACE_LITERAL([DEFAULT_MAIL_DIRECTORY])
m4trace:configure.in:985: -1- m4_pattern_allow([^DEFAULT_MAIL_DIRECTORY$])
m4trace:configure.in:992: -1- AC_DEFINE_TRACE_LITERAL([JOB_CONTROL])
m4trace:configure.in:992: -1- m4_pattern_allow([^JOB_CONTROL$])
m4trace:configure.in:998: -1- AC_SUBST([JOBS_O])
m4trace:configure.in:998: -1- AC_SUBST_TRACE([JOBS_O])
m4trace:configure.in:998: -1- m4_pattern_allow([^JOBS_O$])
m4trace:configure.in:1011: -1- AC_DEFINE_TRACE_LITERAL([SVR4_2])
m4trace:configure.in:1011: -1- m4_pattern_allow([^SVR4_2$])
m4trace:configure.in:1012: -1- AC_DEFINE_TRACE_LITERAL([SVR4])
m4trace:configure.in:1012: -1- m4_pattern_allow([^SVR4$])
m4trace:configure.in:1013: -1- AC_DEFINE_TRACE_LITERAL([SVR4])
m4trace:configure.in:1013: -1- m4_pattern_allow([^SVR4$])
m4trace:configure.in:1014: -1- AC_DEFINE_TRACE_LITERAL([SVR5])
m4trace:configure.in:1014: -1- m4_pattern_allow([^SVR5$])
m4trace:configure.in:1033: -1- AC_DEFINE_TRACE_LITERAL([PGRP_PIPE])
m4trace:configure.in:1033: -1- m4_pattern_allow([^PGRP_PIPE$])
m4trace:configure.in:1080: -1- AC_SUBST([SHOBJ_CC])
m4trace:configure.in:1080: -1- AC_SUBST_TRACE([SHOBJ_CC])
m4trace:configure.in:1080: -1- m4_pattern_allow([^SHOBJ_CC$])
m4trace:configure.in:1081: -1- AC_SUBST([SHOBJ_CFLAGS])
m4trace:configure.in:1081: -1- AC_SUBST_TRACE([SHOBJ_CFLAGS])
m4trace:configure.in:1081: -1- m4_pattern_allow([^SHOBJ_CFLAGS$])
m4trace:configure.in:1082: -1- AC_SUBST([SHOBJ_LD])
m4trace:configure.in:1082: -1- AC_SUBST_TRACE([SHOBJ_LD])
m4trace:configure.in:1082: -1- m4_pattern_allow([^SHOBJ_LD$])
m4trace:configure.in:1083: -1- AC_SUBST([SHOBJ_LDFLAGS])
m4trace:configure.in:1083: -1- AC_SUBST_TRACE([SHOBJ_LDFLAGS])
m4trace:configure.in:1083: -1- m4_pattern_allow([^SHOBJ_LDFLAGS$])
m4trace:configure.in:1084: -1- AC_SUBST([SHOBJ_XLDFLAGS])
m4trace:configure.in:1084: -1- AC_SUBST_TRACE([SHOBJ_XLDFLAGS])
m4trace:configure.in:1084: -1- m4_pattern_allow([^SHOBJ_XLDFLAGS$])
m4trace:configure.in:1085: -1- AC_SUBST([SHOBJ_LIBS])
m4trace:configure.in:1085: -1- AC_SUBST_TRACE([SHOBJ_LIBS])
m4trace:configure.in:1085: -1- m4_pattern_allow([^SHOBJ_LIBS$])
m4trace:configure.in:1086: -1- AC_SUBST([SHOBJ_STATUS])
m4trace:configure.in:1086: -1- AC_SUBST_TRACE([SHOBJ_STATUS])
m4trace:configure.in:1086: -1- m4_pattern_allow([^SHOBJ_STATUS$])
m4trace:configure.in:1118: -1- AC_SUBST([PROFILE_FLAGS])
m4trace:configure.in:1118: -1- AC_SUBST_TRACE([PROFILE_FLAGS])
m4trace:configure.in:1118: -1- m4_pattern_allow([^PROFILE_FLAGS$])
m4trace:configure.in:1120: -1- AC_SUBST([incdir])
m4trace:configure.in:1120: -1- AC_SUBST_TRACE([incdir])
m4trace:configure.in:1120: -1- m4_pattern_allow([^incdir$])
m4trace:configure.in:1121: -1- AC_SUBST([BUILD_DIR])
m4trace:configure.in:1121: -1- AC_SUBST_TRACE([BUILD_DIR])
m4trace:configure.in:1121: -1- m4_pattern_allow([^BUILD_DIR$])
m4trace:configure.in:1124: -1- AC_SUBST([datarootdir])
m4trace:configure.in:1124: -1- AC_SUBST_TRACE([datarootdir])
m4trace:configure.in:1124: -1- m4_pattern_allow([^datarootdir$])
m4trace:configure.in:1125: -1- AC_SUBST([localedir])
m4trace:configure.in:1125: -1- AC_SUBST_TRACE([localedir])
m4trace:configure.in:1125: -1- m4_pattern_allow([^localedir$])
m4trace:configure.in:1127: -1- AC_SUBST([YACC])
m4trace:configure.in:1127: -1- AC_SUBST_TRACE([YACC])
m4trace:configure.in:1127: -1- m4_pattern_allow([^YACC$])
m4trace:configure.in:1128: -1- AC_SUBST([AR])
m4trace:configure.in:1128: -1- AC_SUBST_TRACE([AR])
m4trace:configure.in:1128: -1- m4_pattern_allow([^AR$])
m4trace:configure.in:1129: -1- AC_SUBST([ARFLAGS])
m4trace:configure.in:1129: -1- AC_SUBST_TRACE([ARFLAGS])
m4trace:configure.in:1129: -1- m4_pattern_allow([^ARFLAGS$])
m4trace:configure.in:1131: -1- AC_SUBST([BASHVERS])
m4trace:configure.in:1131: -1- AC_SUBST_TRACE([BASHVERS])
m4trace:configure.in:1131: -1- m4_pattern_allow([^BASHVERS$])
m4trace:configure.in:1132: -1- AC_SUBST([RELSTATUS])
m4trace:configure.in:1132: -1- AC_SUBST_TRACE([RELSTATUS])
m4trace:configure.in:1132: -1- m4_pattern_allow([^RELSTATUS$])
m4trace:configure.in:1133: -1- AC_SUBST([DEBUG])
m4trace:configure.in:1133: -1- AC_SUBST_TRACE([DEBUG])
m4trace:configure.in:1133: -1- m4_pattern_allow([^DEBUG$])
m4trace:configure.in:1134: -1- AC_SUBST([MALLOC_DEBUG])
m4trace:configure.in:1134: -1- AC_SUBST_TRACE([MALLOC_DEBUG])
m4trace:configure.in:1134: -1- m4_pattern_allow([^MALLOC_DEBUG$])
m4trace:configure.in:1136: -1- AC_SUBST([host_cpu])
m4trace:configure.in:1136: -1- AC_SUBST_TRACE([host_cpu])
m4trace:configure.in:1136: -1- m4_pattern_allow([^host_cpu$])
m4trace:configure.in:1137: -1- AC_SUBST([host_vendor])
m4trace:configure.in:1137: -1- AC_SUBST_TRACE([host_vendor])
m4trace:configure.in:1137: -1- m4_pattern_allow([^host_vendor$])
m4trace:configure.in:1138: -1- AC_SUBST([host_os])
m4trace:configure.in:1138: -1- AC_SUBST_TRACE([host_os])
m4trace:configure.in:1138: -1- m4_pattern_allow([^host_os$])
m4trace:configure.in:1140: -1- AC_SUBST([LOCAL_LIBS])
m4trace:configure.in:1140: -1- AC_SUBST_TRACE([LOCAL_LIBS])
m4trace:configure.in:1140: -1- m4_pattern_allow([^LOCAL_LIBS$])
m4trace:configure.in:1141: -1- AC_SUBST([LOCAL_CFLAGS])
m4trace:configure.in:1141: -1- AC_SUBST_TRACE([LOCAL_CFLAGS])
m4trace:configure.in:1141: -1- m4_pattern_allow([^LOCAL_CFLAGS$])
m4trace:configure.in:1142: -1- AC_SUBST([LOCAL_LDFLAGS])
m4trace:configure.in:1142: -1- AC_SUBST_TRACE([LOCAL_LDFLAGS])
m4trace:configure.in:1142: -1- m4_pattern_allow([^LOCAL_LDFLAGS$])
m4trace:configure.in:1143: -1- AC_SUBST([LOCAL_DEFS])
m4trace:configure.in:1143: -1- AC_SUBST_TRACE([LOCAL_DEFS])
m4trace:configure.in:1143: -1- m4_pattern_allow([^LOCAL_DEFS$])
m4trace:configure.in:1148: -1- AC_CONFIG_FILES([Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
lib/intl/Makefile \
lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in \
examples/loadables/Makefile examples/loadables/perl/Makefile])
m4trace:configure.in:1146: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
m4trace:configure.in:1148: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
You should run autoupdate.], [])
m4trace:configure.in:1146: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
m4trace:configure.in:1146: -1- m4_pattern_allow([^LIB@&t@OBJS$])
m4trace:configure.in:1146: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([LTLIBOBJS])
m4trace:configure.in:1146: -1- m4_pattern_allow([^LTLIBOBJS$])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([top_builddir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([top_build_prefix])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([srcdir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([abs_srcdir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([top_srcdir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([abs_top_srcdir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([builddir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([abs_builddir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([abs_top_builddir])
m4trace:configure.in:1146: -1- AC_SUBST_TRACE([INSTALL])
m4trace:configure.in:1148: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
m4trace:configure.in:1148: -1- m4_pattern_allow([^LIB@&t@OBJS$])
m4trace:configure.in:1148: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([LTLIBOBJS])
m4trace:configure.in:1148: -1- m4_pattern_allow([^LTLIBOBJS$])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([top_builddir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([top_build_prefix])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([srcdir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([abs_srcdir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([top_srcdir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([abs_top_srcdir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([builddir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([abs_builddir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([abs_top_builddir])
m4trace:configure.in:1148: -1- AC_SUBST_TRACE([INSTALL])
+1 -1
View File
@@ -139,7 +139,7 @@ extern char **get_shopt_options __P((void));
extern int shopt_setopt __P((char *, int));
extern int shopt_listopt __P((char *, int));
extern int set_login_shell __P((int));
extern int set_login_shell __P((char *, int));
extern void set_bashopts __P((void));
extern void parse_bashopts __P((char *));
+2 -2
View File
@@ -167,11 +167,11 @@ extern int errno;
#define SKIP1 "#'-+ 0"
#define LENMODS "hjlLtz"
#ifndef HAVE_ASPRINTF
#if !HAVE_ASPRINTF
extern int asprintf __P((char **, const char *, ...)) __attribute__((__format__ (printf, 2, 3)));
#endif
#ifndef HAVE_VSNPRINTF
#if !HAVE_VSNPRINTF
extern int vsnprintf __P((char *, size_t, const char *, ...)) __attribute__((__format__ (printf, 3, 4)));
#endif
+10 -2
View File
@@ -156,6 +156,7 @@ extern int errno;
fflush (stdout); \
if (ferror (stdout)) \
{ \
sh_wrerror (); \
clearerr (stdout); \
return (EXECUTION_FAILURE); \
} \
@@ -235,7 +236,12 @@ printf_builtin (list)
switch (ch)
{
case 'v':
if (legal_identifier (vname = list_optarg))
vname = list_optarg;
#if defined (ARRAY_VARS)
if (legal_identifier (vname) || valid_array_reference (vname))
#else
if (legal_identifier (vname))
#endif
{
vflag = 1;
vblen = 0;
@@ -998,7 +1004,9 @@ getintmax ()
shall continue processing any remaining operands and shall write the
value accumulated at the time the error was detected to standard
output.'' Yecch. */
ret = 0;
#if 0
ret = 0; /* return partially-converted value from strtoimax */
#endif
conversion_error = 1;
}
else if (errno == ERANGE)
+21 -7
View File
@@ -114,10 +114,10 @@ static void shopt_error __P((char *));
static int set_shellopts_after_change __P((int));
static int set_compatibility_level __P((int));
static int set_compatibility_level __P((char *, int));
#if defined (RESTRICTED_SHELL)
static int set_restricted_shell __P((int));
static int set_restricted_shell __P((char *, int));
#endif
static int shopt_login_shell;
@@ -125,7 +125,7 @@ static int shopt_compat31;
static int shopt_compat32;
static int shopt_compat40;
typedef int shopt_set_func_t __P((int));
typedef int shopt_set_func_t __P((char *, int));
static struct {
char *name;
@@ -346,7 +346,7 @@ toggle_shopts (mode, list, quiet)
{
*shopt_vars[ind].value = mode; /* 1 for set, 0 for unset */
if (shopt_vars[ind].set_func)
(*shopt_vars[ind].set_func) (mode);
(*shopt_vars[ind].set_func) (shopt_vars[ind].name, mode);
}
}
@@ -495,10 +495,22 @@ set_shellopts_after_change (mode)
}
static int
set_compatibility_level (mode)
set_compatibility_level (option_name, mode)
char *option_name;
int mode;
{
/* Need to change logic here as we add more compatibility levels */
/* First, check option_name so we can turn off other compat options when
one is set. */
if (mode && option_name[6] == '3' && option_name[7] == '1')
shopt_compat32 = shopt_compat40 = 0;
else if (mode && option_name[6] == '3' && option_name[7] == '2')
shopt_compat31 = shopt_compat40 = 0;
else if (mode && option_name[6] == '4' && option_name[7] == '0')
shopt_compat31 = shopt_compat32 = 0;
/* Then set shell_compatibility_level based on what remains */
if (shopt_compat31)
shell_compatibility_level = 31;
else if (shopt_compat32)
@@ -514,7 +526,8 @@ set_compatibility_level (mode)
/* Don't allow the value of restricted_shell to be modified. */
static int
set_restricted_shell (mode)
set_restricted_shell (option_name, mode)
char *option_name;
int mode;
{
static int save_restricted = -1;
@@ -529,7 +542,8 @@ set_restricted_shell (mode)
/* Not static so shell.c can call it to initialize shopt_login_shell */
int
set_login_shell (mode)
set_login_shell (option_name, mode)
char *option_name;
int mode;
{
shopt_login_shell = login_shell != 0;
+3
View File
@@ -106,3 +106,6 @@
# define SYSLOG_FACILITY LOG_USER
# define SYSLOG_LEVEL LOG_INFO
#endif
/* Define if you want to include code in shell.c to support wordexp(3) */
/* #define WORDEXP_OPTION */
Vendored
+220 -14
View File
@@ -1,7 +1,7 @@
#! /bin/sh
# From configure.in for Bash 4.1, version 4.016.
# From configure.in for Bash 4.1, version 4.018.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.63 for bash 4.1-beta.
# Generated by GNU Autoconf 2.63 for bash 4.1-rc.
#
# Report bugs to <bug-bash@gnu.org>.
#
@@ -597,8 +597,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='bash'
PACKAGE_TARNAME='bash'
PACKAGE_VERSION='4.1-beta'
PACKAGE_STRING='bash 4.1-beta'
PACKAGE_VERSION='4.1-rc'
PACKAGE_STRING='bash 4.1-rc'
PACKAGE_BUGREPORT='bug-bash@gnu.org'
ac_unique_file="shell.h"
@@ -1411,7 +1411,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures bash 4.1-beta to adapt to many kinds of systems.
\`configure' configures bash 4.1-rc to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1476,7 +1476,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bash 4.1-beta:";;
short | recursive ) echo "Configuration of bash 4.1-rc:";;
esac
cat <<\_ACEOF
@@ -1652,7 +1652,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
bash configure 4.1-beta
bash configure 4.1-rc
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1666,7 +1666,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bash $as_me 4.1-beta, which was
It was created by bash $as_me 4.1-rc, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -1948,6 +1948,8 @@ ac_header_list="$ac_header_list unistd.h"
ac_func_list="$ac_func_list alarm"
ac_func_list="$ac_func_list fpurge"
ac_func_list="$ac_func_list __fpurge"
ac_func_list="$ac_func_list snprintf"
ac_func_list="$ac_func_list vsnprintf"
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
@@ -2078,7 +2080,7 @@ ac_config_headers="$ac_config_headers config.h"
BASHVERS=4.1
RELSTATUS=beta
RELSTATUS=rc
case "$RELSTATUS" in
alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
@@ -13681,9 +13683,7 @@ done
for ac_func in vsnprintf snprintf vasprintf asprintf
for ac_func in vasprintf asprintf
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -28684,6 +28684,212 @@ fi
if test X$ac_cv_func_snprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
$as_echo_n "checking for standard-conformant snprintf... " >&6; }
if test "${bash_cv_func_snprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
bash_cv_func_snprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
main()
{
int n;
n = snprintf (0, 0, "%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_snprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_snprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
$as_echo "$bash_cv_func_snprintf" >&6; }
if test $bash_cv_func_snprintf = no; then
ac_cv_func_snprintf=no
fi
fi
if test $ac_cv_func_snprintf = no; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_SNPRINTF 0
_ACEOF
fi
if test X$ac_cv_func_vsnprintf = Xyes; then
{ $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
if test "${bash_cv_func_vsnprintf+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
bash_cv_func_vsnprintf=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include <stdio.h>
#include <stdlib.h>
static int
#if HAVE_STDARG_H
foo(const char *fmt, ...)
#else
foo(format, va_alist)
const char *format;
va_dcl
#endif
{
va_list args;
int n;
#if HAVE_STDARG_H
va_start(args, fmt);
#else
va_start(args);
#endif
n = vsnprintf(0, 0, fmt, args);
va_end (args);
return n;
}
main()
{
int n;
n = foo("%s", "0123456");
exit(n != 7);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
bash_cv_func_vsnprintf=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
bash_cv_func_vsnprintf=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
$as_echo "$bash_cv_func_vsnprintf" >&6; }
if test $bash_cv_func_vsnprintf = no; then
ac_cv_func_vsnprintf=no
fi
fi
if test $ac_cv_func_vsnprintf = no; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_VSNPRINTF 0
_ACEOF
fi
if test "$ac_cv_func_putenv" = "yes"; then
@@ -30964,7 +31170,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by bash $as_me 4.1-beta, which was
This file was extended by bash $as_me 4.1-rc, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -31027,7 +31233,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
bash config.status 4.1-beta
bash config.status 4.1-rc
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+7 -5
View File
@@ -21,10 +21,10 @@ dnl Process this file with autoconf to produce a configure script.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AC_REVISION([for Bash 4.1, version 4.016])dnl
AC_REVISION([for Bash 4.1, version 4.018])dnl
define(bashvers, 4.1)
define(relstatus, beta)
define(relstatus, rc)
AC_INIT([bash], bashvers-relstatus, [bug-bash@gnu.org])
@@ -507,8 +507,8 @@ then
case "$ac_cv_rl_version" in
5*|6*|7*|8*|9*) ;;
*) opt_with_installed_readline=no
AC_MSG_WARN(installed readline library is too old to be linked with bash)
AC_MSG_WARN(using private bash version)
AC_MSG_WARN([installed readline library is too old to be linked with bash])
AC_MSG_WARN([using private bash version])
;;
esac
fi
@@ -733,7 +733,7 @@ AC_CHECK_FUNCS(bcopy bzero confstr fnmatch \
setenv setlinebuf setlocale setvbuf siginterrupt strchr \
sysconf syslog tcgetattr times ttyname tzset unsetenv)
AC_CHECK_FUNCS(vsnprintf snprintf vasprintf asprintf)
AC_CHECK_FUNCS(vasprintf asprintf)
AC_CHECK_FUNCS(isascii isblank isgraph isprint isspace isxdigit)
AC_CHECK_FUNCS(getpwent getpwnam getpwuid)
AC_REPLACE_FUNCS(getcwd memset)
@@ -928,6 +928,8 @@ BASH_FUNC_GETCWD
fi
BASH_FUNC_POSIX_SETJMP
BASH_FUNC_STRCOLL
BASH_FUNC_SNPRINTF
BASH_FUNC_VSNPRINTF
dnl If putenv or unsetenv is not present, set the right define so the
dnl prototype and declaration in lib/sh/getenv.c will be standard-conformant
+9 -7
View File
@@ -1,5 +1,5 @@
dnl
dnl Configure script for bash-4.0
dnl Configure script for bash-4.1
dnl
dnl report bugs to chet@po.cwru.edu
dnl
@@ -21,10 +21,10 @@ dnl Process this file with autoconf to produce a configure script.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AC_REVISION([for Bash 4.0, version 4.014])dnl
AC_REVISION([for Bash 4.1, version 4.016])dnl
define(bashvers, 4.0)
define(relstatus, maint)
define(bashvers, 4.1)
define(relstatus, beta)
AC_INIT([bash], bashvers-relstatus, [bug-bash@gnu.org])
@@ -507,8 +507,8 @@ then
case "$ac_cv_rl_version" in
5*|6*|7*|8*|9*) ;;
*) opt_with_installed_readline=no
AC_MSG_WARN(installed readline library is too old to be linked with bash)
AC_MSG_WARN(using private bash version)
AC_MSG_WARN([installed readline library is too old to be linked with bash])
AC_MSG_WARN([using private bash version])
;;
esac
fi
@@ -733,7 +733,7 @@ AC_CHECK_FUNCS(bcopy bzero confstr fnmatch \
setenv setlinebuf setlocale setvbuf siginterrupt strchr \
sysconf syslog tcgetattr times ttyname tzset unsetenv)
AC_CHECK_FUNCS(vsnprintf snprintf vasprintf asprintf)
AC_CHECK_FUNCS(vasprintf asprintf)
AC_CHECK_FUNCS(isascii isblank isgraph isprint isspace isxdigit)
AC_CHECK_FUNCS(getpwent getpwnam getpwuid)
AC_REPLACE_FUNCS(getcwd memset)
@@ -928,6 +928,8 @@ BASH_FUNC_GETCWD
fi
BASH_FUNC_POSIX_SETJMP
BASH_FUNC_STRCOLL
BASH_FUNC_SNPRINTF
BASH_FUNC_VSNPRINTF
dnl If putenv or unsetenv is not present, set the right define so the
dnl prototype and declaration in lib/sh/getenv.c will be standard-conformant
+13
View File
@@ -8635,6 +8635,19 @@ If set,
changes its behavior to that of version 3.1 with respect to quoted
arguments to the conditional command's =~ operator.
.TP 8
.B compat32
If set,
.B bash
changes its behavior to that of version 3.2 with respect to locale-specific
string comparison when using the conditional command's < and > operators.
.TP 8
.B compat40
If set,
.B bash
changes its behavior to that of version 4.0 with respect to locale-specific
string comparison when using the conditional command's < and > operators
and the effect of interrupting a command list.
.TP 8
.B dirspell
If set,
.B bash
+20 -2
View File
@@ -3208,11 +3208,17 @@ static int
execute_cond_node (cond)
COND_COM *cond;
{
int result, invert, patmatch, rmatch, mflags;
int result, invert, patmatch, rmatch, mflags, ignore;
char *arg1, *arg2;
invert = (cond->flags & CMD_INVERT_RETURN);
ignore = (cond->flags & CMD_IGNORE_RETURN);
if (ignore)
{
cond->left->flags |= CMD_IGNORE_RETURN;
cond->right->flags |= CMD_IGNORE_RETURN;
}
if (cond->type == COND_EXPR)
result = execute_cond_node (cond->left);
else if (cond->type == COND_OR)
@@ -3229,7 +3235,11 @@ execute_cond_node (cond)
}
else if (cond->type == COND_UNARY)
{
if (ignore)
comsub_ignore_return++;
arg1 = cond_expand_word (cond->left->op, 0);
if (ignore)
comsub_ignore_return--;
if (arg1 == 0)
arg1 = nullstr;
if (echo_command_at_execute)
@@ -3249,11 +3259,19 @@ execute_cond_node (cond)
cond->op->word[2] == '\0');
#endif
if (ignore)
comsub_ignore_return++;
arg1 = cond_expand_word (cond->left->op, 0);
if (ignore)
comsub_ignore_return--;
if (arg1 == 0)
arg1 = nullstr;
if (ignore)
comsub_ignore_return++;
arg2 = cond_expand_word (cond->right->op,
(rmatch && shell_compatibility_level > 31) ? 2 : (patmatch ? 1 : 0));
if (ignore)
comsub_ignore_return--;
if (arg2 == 0)
arg2 = nullstr;
+14 -4
View File
@@ -1461,9 +1461,6 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
if (return_catch_flag)
function_value = setjmp (return_catch);
if (result)
itrace("execute_in_subshell: longjmp to top_level, result = %d last_command_exit_value = %d", result, last_command_exit_value);
/* If we're going to exit the shell, we don't want to invert the return
status. */
if (result == EXITPROG)
@@ -3211,10 +3208,11 @@ static int
execute_cond_node (cond)
COND_COM *cond;
{
int result, invert, patmatch, rmatch, mflags;
int result, invert, patmatch, rmatch, mflags, ignore;
char *arg1, *arg2;
invert = (cond->flags & CMD_INVERT_RETURN);
ignore = (cond->flags & CMD_IGNORE_RETURN);
if (cond->type == COND_EXPR)
result = execute_cond_node (cond->left);
@@ -3232,7 +3230,11 @@ execute_cond_node (cond)
}
else if (cond->type == COND_UNARY)
{
if (ignore)
comsub_ignore_return++;
arg1 = cond_expand_word (cond->left->op, 0);
if (ignore)
comsub_ignore_return--;
if (arg1 == 0)
arg1 = nullstr;
if (echo_command_at_execute)
@@ -3252,11 +3254,19 @@ execute_cond_node (cond)
cond->op->word[2] == '\0');
#endif
if (ignore)
comsub_ignore_return++;
arg1 = cond_expand_word (cond->left->op, 0);
if (ignore)
comsub_ignore_return--;
if (arg1 == 0)
arg1 = nullstr;
if (ignore)
comsub_ignore_return++;
arg2 = cond_expand_word (cond->right->op,
(rmatch && shell_compatibility_level > 31) ? 2 : (patmatch ? 1 : 0));
if (ignore)
comsub_ignore_return--;
if (arg2 == 0)
arg2 = nullstr;
+1 -2
View File
@@ -701,8 +701,7 @@ bgp_delete (pid)
for (prev = p = bgpids.list; p; prev = p, p = p->next)
if (p->pid == pid)
{
if (p != prev)
prev->next = p->next; /* remove from list */
prev->next = p->next; /* remove from list */
break;
}
+1 -1
View File
@@ -1030,7 +1030,7 @@ glob_filename (pathname, flags)
dflags |= GX_ALLDIRS|GX_ADDCURDIR;
#if 0
/* If we want all directories (dflags & GX_ALLDIRS) and we're not
being called recursively as something like `echo **/*.o'
being called recursively as something like `echo [star][star]/[star].o'
((flags & GX_ALLDIRS) == 0), we want to prevent glob_vector from
adding a null directory name to the front of the temp_results
array. We turn off ADDCURDIR if not called recursively and
+2
View File
@@ -517,7 +517,9 @@ prepare_terminal_settings (meta_flag, oldtio, tiop)
TIOTYPE oldtio, *tiop;
{
_rl_echoing_p = (oldtio.c_lflag & ECHO);
#if defined (ECHOCTL)
_rl_echoctl = (oldtio.c_lflag & ECHOCTL);
#endif
tiop->c_lflag &= ~(ICANON | ECHO);
+8 -5
View File
@@ -65,6 +65,9 @@
#if defined(DEBUG) && !defined (MACOSX)
# undef HAVE_SNPRINTF
# undef HAVE_ASPRINTF
# define HAVE_SNPRINTF 0
# define HAVE_ASPRINTF 0
#endif
#if defined(DRIVER) && !defined(HAVE_CONFIG_H)
@@ -83,7 +86,7 @@
#define intmax_t long
#endif
#if !defined (HAVE_SNPRINTF) || !defined (HAVE_ASPRINTF)
#if !HAVE_SNPRINTF || !HAVE_ASPRINTF
#include <bashtypes.h>
@@ -1641,7 +1644,7 @@ dfallback (data, fs, fe, d)
}
#endif /* FLOATING_POINT */
#ifndef HAVE_SNPRINTF
#if !HAVE_SNPRINTF
int
#if defined (__STDC__)
@@ -1691,7 +1694,7 @@ snprintf(string, length, format, va_alist)
#endif /* HAVE_SNPRINTF */
#ifndef HAVE_ASPRINTF
#if !HAVE_ASPRINTF
int
#if defined (__STDC__)
@@ -1736,9 +1739,9 @@ asprintf(stringp, format, va_alist)
return rval;
}
#endif
#endif /* !HAVE_ASPRINTF */
#endif
#endif /* !HAVE_SNPRINTF || !HAVE_ASPRINTF */
#ifdef DRIVER
+13 -5
View File
@@ -62,9 +62,12 @@
#endif
/* GCC 4.2 on Snow Leopard doesn't like the snprintf prototype */
#if defined(DEBUG) /* && !defined (MACOSX) */
#if defined(DEBUG) && !defined (MACOSX)
# undef HAVE_SNPRINTF
# undef HAVE_ASPRINTF
# define HAVE_SNPRINTF 0
# define HAVE_ASPRINTF 0
#endif
#if defined(DRIVER) && !defined(HAVE_CONFIG_H)
@@ -83,7 +86,7 @@
#define intmax_t long
#endif
#if !defined (HAVE_SNPRINTF) || !defined (HAVE_ASPRINTF)
#if !HAVE_SNPRINTF || !HAVE_ASPRINTF
#include <bashtypes.h>
@@ -1641,7 +1644,7 @@ dfallback (data, fs, fe, d)
}
#endif /* FLOATING_POINT */
#ifndef HAVE_SNPRINTF
#if !HAVE_SNPRINTF
int
#if defined (__STDC__)
@@ -1691,7 +1694,7 @@ snprintf(string, length, format, va_alist)
#endif /* HAVE_SNPRINTF */
#ifndef HAVE_ASPRINTF
#if !HAVE_ASPRINTF
int
#if defined (__STDC__)
@@ -1736,8 +1739,13 @@ asprintf(stringp, format, va_alist)
return rval;
}
#endif
#endif /* HAVE_ASPRINTF */
static void
fake_snprintf_asprintf_symbol()
{
;
}
#endif
#ifdef DRIVER
+9 -1
View File
@@ -256,7 +256,9 @@ static const struct {
#endif
{ "verbose", Int, &echo_input_at_read, (char **)0x0 },
{ "version", Int, &do_version, (char **)0x0 },
#if defined (WORDEXP_OPTION)
{ "wordexp", Int, &wordexp_only, (char **)0x0 },
#endif
{ (char *)0x0, Int, (int *)0x0, (char **)0x0 }
};
@@ -304,7 +306,9 @@ static void run_startup_files __P((void));
static int open_shell_script __P((char *));
static void set_bash_input __P((void));
static int run_one_command __P((char *));
#if defined (WORDEXP_OPTION)
static int run_wordexp __P((char *));
#endif
static int uidget __P((void));
@@ -473,7 +477,7 @@ main (argc, argv, env)
login_shell = -login_shell;
}
set_login_shell (login_shell != 0);
set_login_shell ("login_shell", login_shell != 0);
if (dump_po_strings)
dump_translatable_strings = 1;
@@ -662,12 +666,14 @@ main (argc, argv, env)
maybe_make_restricted (shell_name);
#endif /* RESTRICTED_SHELL */
#if defined (WORDEXP_OPTION)
if (wordexp_only)
{
startup_state = 3;
last_command_exit_value = run_wordexp (argv[arg_index]);
exit_shell (last_command_exit_value);
}
#endif
if (command_execution_string)
{
@@ -1202,6 +1208,7 @@ disable_priv_mode ()
current_user.egid = current_user.gid;
}
#if defined (WORDEXP_OPTION)
static int
run_wordexp (words)
char *words;
@@ -1273,6 +1280,7 @@ run_wordexp (words)
return (0);
}
#endif
#if defined (ONESHOT)
/* Run one command, given as the argument to the -c option. Tell
+3
View File
@@ -807,6 +807,9 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
nse-tandem)
basic_machine=nse-tandem
;;
nsr-tandem)
basic_machine=nsr-tandem
;;
+1662
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR