From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by archone.tamu.edu id <45317>; Sat, 4 Apr 1992 22:56:13 -0600 From: Byron Rakitzis To: rc, schwartz@groucho.cs.psu.edu Subject: Re: -x -n Message-Id: <92Apr4.225613cst.45317@archone.tamu.edu> Date: Sat, 4 Apr 1992 22:56:05 -0600 Well, the prompt part is your prompt function getting imported from the environment & interpreted by the rc parser. Since this happens only once (and a good thing!) you only see it once. The "wrong name" is just a convenient trick used to munge the environment string into something the parser will recognize. I suppose it is debatable whether rc -n should be interpreting fn prompt at all---I hadn't thought of this up to now and offhand I should say the answer is no. I will fix this. Lists are parsed "backwards" because of yacc. Doing it the other way would consume yacc stack space proportional to the length of the list. Anyone up for writing a recursive-descent parser for rc? (just kidding...)