rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* matching bug
@ 2000-04-16  3:49 Decklin Foster
  0 siblings, 0 replies; only message in thread
From: Decklin Foster @ 2000-04-16  3:49 UTC (permalink / raw)
  To: rc

I was reminded today that I planned to forward this here:


This is a bug report which notes that rc segfaults if you attempt to
match '*' against the null list ("~ () '*'"). unquoted * is ok.

A quick trace shows that p->m is null (from what i can gather, this
means there are no metacharacters in p->w. documentation on the List
structure would be appreciated).

This is the line we crash on:

	if (p->w[i] != '*' || p->m[i] != 1)

I'm a bit wary of just taking a check for non-NULL p->m on here, since
I don't understand what that means (other than the fact that with an
unquoted *, it's a pointer to "\001"). It seems like the function
really ought to be rewritten.

Written with 100% free software. Please support the following websites:
www.debian.org www.noamazon.com www.gnu.org www.opendvd.org lpf.ai.mit.edu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-17 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-16  3:49 matching bug Decklin Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).