Pete's Log: signals! hai!

Entry #617, (Coding, Hacking, & CS stuff)
(posted when I was 22 years old.)

well, not so much signals, per se, as globs. but "globs! hai!" just didn't sound good. watashi wa shinkansen desu ka. Philosophical Japanese for the masses. I really need to get back to learning Japanese, I was making good progress for a while, and then the semester started. And now I've forgotten most of what I learned, I fear.

So anyway, today during OS I did several things to entertain myself. I attempted to explain what happens when a process' child gets stopped. I checked my bangs for split ends (heheheh... my hair's long enough to do this now... and no, I didn't find any), and I outlined a recursive approach to glob matching. Which means this isn't going to be efficient at all. We have a recursive directory scan which calls a recursive matching function. Here we go long stack trace, here we go! Let's see, tcsh takes an interesting approach to redirect globs. It is a sensible approach, but it's forcing me to rethink some things.

an amusing typo I made:
#include <sys/typos.h>

I'm easily amused.

So the main problem is that you can use globs for redirects, but only if you match exactly one file. So to efficiently (heh. I'm talking about efficiency) graft this onto my parser, I'm gonna want to tell the glob matcher to bail if it finds more than one match, which kind of violates my current abstraction systems, but hey, abstraction is meant to be tossed out the window. So anyway, it's time to code this sucker up.