Subject: Re: Stopping wildcard expansion?
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
From: David Maxwell <david@fundy.ca>
List: netbsd-users
Date: 01/10/2000 23:22:09
On Tue, Jan 11, 2000 at 01:52:46AM +0100, Thomas Klausner wrote:
> Sometimes when using "poor man's search" (grep something
> */*/Makefile), I change my mind in the middle of it, and try to CTRL-C
> out of it -- but it doesn't work: I still have to wait before the
> shell (bash) has expanded all the filenames, only then do the CTRL-C's
> I've entered finally do something. Is there a way to stop this faster?
> (except killing the shell) Is this something bash should learn, or is
> the problem on NetBSD's side?
Well, for a summary:
bash, tcsh, csh BAD
sh, ksh GOOD
Also, It only happens for things it execs. (As far as I've tried)
Builtins, like echo /usr/pkgsrc/*/*/Makefile can be stopped right
away in all shells.
I'd guess that sh sets a signal handler properly as soon as it
starts globbing. ksh inherited that. csh broke it, and tcsh and
bash inherited that.
Shouldn't be too hard to find.
--
David Maxwell, david@vex.net|david@maxwell.net -->
Any sufficiently advanced Common Sense will seem like magic...
- me