From: utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!hao!seismo!rlgvax!guy Newsgroups: net.unix-wizards Title: Re: csh: pre-prompt execution Article-I.D.: rlgvax.171 Posted: Thu Mar 31 11:18:31 1983 Received: Sun Apr 3 01:23:42 1983 References: sri-arpa.751 A version of the Bourne shell done at the Naval Surface Weapons Center does exactly that (in addition to having a history and alias mechanism); it runs macro() on the PS1 string before printing it. That way, you can set PS1 to '$CWD >' to have the current working directory printed with the prompt (they added the CWD variable), or '`foobar` --' to run the "foobar" command and substitute its output into the prompt, or... Guy Harris RLG Corporation {seismo|mcnc|we13}!rlgvax!guy