Path: utzoo!mnetor!uunet!husc6!bbn!mit-eddie!ll-xn!ames!pasteur!ucbvax!decwrl!labrea!orphan!conor From: conor@orphan.UUCP (Conor S. Rafferty) Newsgroups: comp.bugs.4bsd Subject: C-shell alias bug or bug in user circuitry? Message-ID: <2@orphan.UUCP> Date: 15 Apr 88 20:21:07 GMT Distribution: na Lines: 18 Keywords: csh alias bug Summary: how can an alias parse with one set of args and not with another? Expires: Sender: Reply-To: Followup-To: I have an alias, called "a". When executed as "a 1 2" it performs normally. When executed as "a 1 1", csh leaves my shell hanging in the subsidiary prompt and a ^D is necessary to escape, leaving a "missing the/endif" complaint. Here it is: orphan conor% alias a if !:^ != !:$ then; echo !:$ ; endif orphan conor% a 1 2 2 orphan conor% a 1 1 ? ? then: then/endif not found. orphan conor% The alias is supposed to echo the second arg if it is different from the first one. -C