Imported from ../bash-2.05b.tar.gz.

This commit is contained in:
Jari Aalto 2002-07-17 14:10:11 +00:00
commit 7117c2d221
362 changed files with 34387 additions and 15063 deletions

10
eval.c
View file

@ -52,6 +52,9 @@ extern int need_here_doc;
extern int current_command_number, current_command_line_count, line_number;
extern int expand_aliases;
static void send_pwd_to_eterm __P((void));
static sighandler alrm_catcher __P((int));
/* Read and execute commands until EOF is reached. This assumes that
the input source has already been initialized. */
int
@ -114,7 +117,8 @@ reader_loop ()
}
executing = 0;
dispose_used_env_vars ();
if (temporary_env)
dispose_used_env_vars ();
#if (defined (ultrix) && defined (mips)) || defined (C_ALLOCA)
/* Attempt to reclaim memory allocated with alloca (). */
@ -240,9 +244,9 @@ read_command ()
{
tmout_var = find_variable ("TMOUT");
if (tmout_var && tmout_var->value)
if (tmout_var && var_isset (tmout_var))
{
tmout_len = atoi (tmout_var->value);
tmout_len = atoi (value_cell (tmout_var));
if (tmout_len > 0)
{
old_alrm = set_signal_handler (SIGALRM, alrm_catcher);