Re: bash problem with #!, rev 2

2005-07-26 Thread Bob Proulx
Dave Yost wrote: > In other words, a program starting with > > #!/usr/local/bin/compileAndGo > > should invoke /usr/local/bin/compileAndGo, and compileAndGo is a > program starting with > > #!/bin/bash That is not a portable combination. The #! needs to be a machine executable and not a s

bash.exe.stackdump

2005-07-26 Thread Matthew Carroll
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -

bash problem with #!, rev 2

2005-07-26 Thread Dave Yost
[added a diagnosis near the end.] Please see http://Yost.com/computers/compileAndGo That page describes a #!/bin/bash script called compileAndGo, which is used as the program for a #! script. In other words, a program starting with #!/usr/local/bin/compileAndGo should invoke /usr/local/bi

bash problem with #!

2005-07-26 Thread Dave Yost
Please see http://Yost.com/computers/compileAndGo That page describes a #!/bin/bash script called compileAndGo, which is used as the program for a #! script. In other words, a program starting with #!/usr/local/bin/compileAndGo should invoke /usr/local/bin/compileAndGo, and compileAndGo is

Interactive mode, tty intr key, and $?

2005-07-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Configuration Information: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' - -DCONF_OSTYPE=\ 'cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' - -DLOCALEDIR='/usr/\ share/locale' -DPACK

Re: patch: use spawnve() for simple commands if available

2005-07-26 Thread Eric Blake
Keith Reynolds keithr.org> writes: > > Description: > The attached patch uses spawnve() for simple commands (no redirection or fds to close). > On cygwin, where fork() is notoriously slow, this patch cuts the execution time of > bash's own configure script from 5:09 to