summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-10 05:13:42 +0000
committerache <ache@FreeBSD.org>1995-08-10 05:13:42 +0000
commit015e766f81447af9e47fdb58742a92555f75e076 (patch)
tree79c69571154944170997a7b4ab79be80c91699a6 /bin
parent95dd59f2aea9a41c65987a24c1e174fc190e1578 (diff)
downloadFreeBSD-src-015e766f81447af9e47fdb58742a92555f75e076.zip
FreeBSD-src-015e766f81447af9e47fdb58742a92555f75e076.tar.gz
Fix csh to determine event number properly, i.e. stop by ^*-% too.
This fix match with what manpage said and other systems csh's do. Submitted by: Bill Fenner <fenner@parc.xerox.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/lex.c b/bin/csh/lex.c
index 6051d9a..940ccae 100644
--- a/bin/csh/lex.c
+++ b/bin/csh/lex.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: lex.c,v 1.2 1994/09/24 02:54:09 davidg Exp $
+ * $Id: lex.c,v 1.3 1995/05/30 00:06:35 rgrimes Exp $
*/
#ifndef lint
@@ -1187,7 +1187,7 @@ gethent(sc)
}
np = lhsb;
event = 0;
- while (!cmap(c, _ESC | _META | _QF | _QB) && !any("${}:", c)) {
+ while (!cmap(c, _ESC | _META | _QF | _QB) && !any("^$*-%{}:", c)) {
if (event != -1 && Isdigit(c))
event = event * 10 + c - '0';
else
OpenPOWER on IntegriCloud