From 5556dde4d3ad4e34267320b1411fc090b18a24b0 Mon Sep 17 00:00:00 2001 From: Byron Rakitzis Date: Mon, 7 Mar 1994 00:00:01 +0000 Subject: beta: rc-1.5betadev1 --- history/history.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'history') diff --git a/history/history.c b/history/history.c index 5f2cece..e6aa29d 100644 --- a/history/history.c +++ b/history/history.c @@ -246,7 +246,7 @@ again: s = last; /* * if the command contains the "me" character at the start of the line - * or after any of [`{|()] then try again + * or after any of [`{|()@] then try again */ for (t = s; *t != '\0'; t++) @@ -254,8 +254,16 @@ again: s = last; char *u = t - 1; while (u >= s && (*u == ' ' || *u == '\t')) --u; - if (u < s || *u == '`' || *u == '{' || *u == '|' || *u == '(' || *u == ')') + if (u < s) goto again; + switch (*u) { + case '`': case '@': + case '(': case ')': + case '{': case '|': + goto again; + default: + break; + } } return s; } -- cgit v1.2.3