From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 26 Aug 1999 14:20:12 -0400 From: Russ Cox rsc@plan9.bell-labs.com Subject: [9fans] minor glitch with free carets Topicbox-Message-UUID: 9a08cbac-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19990826182012.rx78QS7Eds_TnARevBzO8v8bH4KNmsqJwXPHQqhzVQg@z> i just got bitten by this... % echo a'b' ab % echo fn fn % echo fn'b' fn b % A fix is to change the word: production in /sys/src/cmd/rc/syn.y from word: keyword {$1->type=WORD;} to word: keyword {lastword=1; $1->type=WORD;} And you'll have to add "int lastword;" to rc.h so that lex.c's lastword is visible. Russ