Re: Fun with #! (aka shebang) and filenames ending in .exe

2004-03-29 Thread Igor Pechtchanski
On Mon, 29 Mar 2004, Robert R Schneck wrote: > Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > > 'Ware of this issue: > > > > http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN846> > > If a shell script myprog and a program myprog.exe coexist in a > > directory, the program has precede

Re: Fun with #! (aka shebang) and filenames ending in .exe

2004-03-29 Thread Robert R Schneck
Igor Pechtchanski <[EMAIL PROTECTED]> wrote: > 'Ware of this issue: > > http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN846> > If a shell script myprog and a program myprog.exe coexist in a > directory, the program has precedence and is selected for execution of > myprog. > The o

Re: Fun with #! (aka shebang) and filenames ending in .exe

2004-03-28 Thread Igor Pechtchanski
On Sun, 28 Mar 2004, Dan Kegel wrote: > Larry Hall wrote: > >>./foo.sh > >>mv foo.sh foo.exe > >>./foo.exe > >> > >>The first foo.sh works fine. The second... well, it's entertaining. > >>I have to kill the window, ^C is ignored. > > > > Well, ^C worked for me, though the terminal then would not

Re: Fun with #! (aka shebang) and filenames ending in .exe

2004-03-28 Thread Dan Kegel
Larry Hall wrote: ./foo.sh mv foo.sh foo.exe ./foo.exe The first foo.sh works fine. The second... well, it's entertaining. I have to kill the window, ^C is ignored. Well, ^C worked for me, though the terminal then would not respond to any other input. Maybe that's what you meant by "it's enterta

Re: Fun with #! (aka shebang) and filenames ending in .exe

2004-03-28 Thread Larry Hall
At 08:16 PM 3/27/2004, you wrote: >Try this: >cat > foo.sh <#!/bin/sh >echo Howdy >EOF >chmod +x foo.sh >./foo.sh >mv foo.sh foo.exe >./foo.exe > >The first foo.sh works fine. The second... well, it's entertaining. >I have to kill the window, ^C is ignored. Well, ^C worked for me, though the ter