"Terminate batch job?"

2005-09-20 Thread Gary Fritz
I'm running Bash 3.00.16 on Cygwin.  Sometimes, maybe 1/3 of the time, when 
I exit a bash shell, bash prompts me with the prompt "Terminate batch job? 
(Y/N)"  It's not background tasks running in bash; if I run e.g. "cat &" 
and exit, it says "There are stopped jobs." and doesn't exit unless I say 
"exit" again.

I've never seen anything listed in "ps" that would explain what this is.  I 
can't figure out what triggers it.  What's going on?

Gary


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


long delays when checking a maildir format mailbox

2005-09-20 Thread eravin
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: netbsdelf2.0
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='netbsdelf2.0' -DCONF_MACHTYPE='i386-unknown-netbsdelf2.0' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/pkg/bash-3.0-p1/share/locale' 
-DPACKAGE='bash' -DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  
-I/usr/local/include -Wl,-Map,/tmp/pipes/bash-3.0-p1
uname output: NetBSD panix5.panix.com 2.0 NetBSD 2.0 (PANIX-USER) #3: Thu Jan 
13 20:20:38 EST 2005  [EMAIL 
PROTECTED]:/devel/netbsd/2.0/src/sys/arch/i386/compile/PANIX-USER i386
Machine Type: i386-unknown-netbsdelf2.0

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:
Our environment uses maildir format mailboxes.  When a user has a large
mailbox, bash takes a very long time (sometimes 60-120 seconds on a mailbox
with 5000 messages in it) when doing the "new mail check".  The more
messages in the mailbox, the worse the problem gets.


Repeat-By:
  With a large maildir mailbox of 2500 or more messages, set $MAIL
appropriately and wait for a new message to come in.  You will encounter
long pauses between commands when Bash checks for new mail.



___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


read -t 0 causes segfault on SIGINT

2005-09-20 Thread hcz
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux tazzelwurm 2.6.13hcz1h #9 Sun Sep 18 13:23:52 CEST 2005 
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
  While looking for a non-blocking read: See below.

Repeat-By:
  [EMAIL PROTECTED]:~$ bash
  [EMAIL PROTECTED]:~$ while sleep 1; do read -t 0; done
... type ^C ...
  Segmentation fault
  [EMAIL PROTECTED]:~$

Fix:
  I don't think that anybody really needs an urgent fix.


Greetings,

Heike


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Change of the Makefile

2005-09-20 Thread Michael Song
Hello, Shell Community

My name is Michael Song

Recently I found shell is a nice program that can be extended to solve my 
automatic regression test problem. So I started hacking it.
I found it would be easiler use $(wildcard) in the builtins/Makefile.in, in 
stead of staticly specify all the source files:


Here is the snippet of code change to illustrate my idea:

In builtins/Makefile.in

Original Definition:
DEFSRC =  $(srcdir)/alias.def $(srcdir)/bind.def $(srcdir)/break.def \
  $(srcdir)/builtin.def $(srcdir)/caller.def \
  $(srcdir)/cd.def $(srcdir)/colon.def \
  $(srcdir)/command.def $(srcdir)/declare.def $(srcdir)/echo.def \
  $(srcdir)/enable.def $(srcdir)/eval.def $(srcdir)/getopts.def \
  $(srcdir)/exec.def $(srcdir)/exit.def $(srcdir)/fc.def \
  $(srcdir)/fg_bg.def $(srcdir)/hash.def $(srcdir)/help.def \
  $(srcdir)/history.def $(srcdir)/jobs.def $(srcdir)/kill.def \
  $(srcdir)/let.def $(srcdir)/read.def $(srcdir)/return.def \
  $(srcdir)/set.def $(srcdir)/setattr.def $(srcdir)/shift.def \
  $(srcdir)/source.def $(srcdir)/suspend.def $(srcdir)/test.def \
  $(srcdir)/times.def $(srcdir)/trap.def $(srcdir)/type.def \
  $(srcdir)/ulimit.def $(srcdir)/umask.def $(srcdir)/wait.def \
  $(srcdir)/pushd.def $(srcdir)/shopt.def \
  $(srcdir)/printf.def $(srcdir)/complete.def

Proposed Definition:
DEFSRC   = $(wildcard $(srcdir)/*.def)

   
clean:
$(RM) -rf $(patsubst %.def, %.c, $(DEFSRC)) $(CREATED_FILES) 
$(MKBUILTINS) *.o libbuiltins.a -r helpfiles


This wild card works based on the assumption that the reserved.def file is 
renamed to something else

 In the Makefile.in under the root, the change is as follows:

Original Definition:
BUILTIN_DEFS = $(DEFSRC)/alias.def $(DEFSRC)/bind.def $(DEFSRC)/break.def \
   $(DEFSRC)/builtin.def $(DEFSRC)/cd.def $(DEFSRC)/colon.def \
   $(DEFSRC)/command.def ${DEFSRC}/complete.def \
   $(DEFSRC)/caller.def $(DEFSRC)/declare.def \
   $(DEFSRC)/echo.def $(DEFSRC)/enable.def $(DEFSRC)/eval.def \
   $(DEFSRC)/exec.def $(DEFSRC)/exit.def $(DEFSRC)/fc.def \
   $(DEFSRC)/fg_bg.def $(DEFSRC)/hash.def $(DEFSRC)/help.def \
   $(DEFSRC)/history.def $(DEFSRC)/jobs.def $(DEFSRC)/kill.def \
   $(DEFSRC)/let.def $(DEFSRC)/read.def $(DEFSRC)/return.def \
   $(DEFSRC)/set.def $(DEFSRC)/setattr.def $(DEFSRC)/shift.def \
   $(DEFSRC)/source.def $(DEFSRC)/suspend.def $(DEFSRC)/test.def \
   $(DEFSRC)/times.def $(DEFSRC)/trap.def $(DEFSRC)/type.def \
   $(DEFSRC)/ulimit.def $(DEFSRC)/umask.def $(DEFSRC)/wait.def \
   $(DEFSRC)/getopts.def \
   $(DEFSRC)/pushd.def $(DEFSRC)/shopt.def $(DEFSRC)/printf.def

New Definition:
BUILTIN_DEFS   = $(wildcard $(DEFSRC)/*.def)
OFILES  = builtins.o $(patsubst %.def, %.o, $(DEFSRC))  $(patsubst %.c, %.o, 
$(STATIC_SOURCE))
Thanks

Michael Song
___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash