Subject: Re: Stopping wildcard expansion?
To: Andrew Brown <atatat@atatdot.net>
From: David Maxwell <david@fundy.ca>
List: netbsd-users
Date: 01/11/2000 16:54:56
On Tue, Jan 11, 2000 at 02:59:02PM -0500, Andrew Brown wrote:
> is this just an old tcsh you checked?  mine (6.09.00) seems to handle
> ^c appropriately.

Older, but not ancient.  tcsh 6.08.00
Compiling tcsh 6.09.00 gives the same (disfunctional) behaviour for me.

Signal handling might also be affected by how you got to your shell -
console, login shell, ssh, telnet.

I tracked this down in /bin/csh, to exec.c, line 166, where it does
the argument globbing before the exec.

    if (gflag) {
        av = globall(av);
        if (av == 0) {
            blkfree(pv);
            setname(vis_str(expath));
            stderror(ERR_NAME | ERR_NOMATCH);
        }
        gargv = 0;
    }

In a short attempt, I couldn't add signal code to get me back to
a prompt on ^C.

-- 
David Maxwell, david@vex.net|david@maxwell.net -->
Any sufficiently advanced Common Sense will seem like magic... 
					      - me