Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!teddy!jpn From: jpn@teddy.UUCP (John P. Nelson) Newsgroups: net.unix-wizards Subject: Re: .cshrc efficiency note Message-ID: <2571@teddy.UUCP> Date: Sun, 4-May-86 09:29:34 EDT Article-I.D.: teddy.2571 Posted: Sun May 4 09:29:34 1986 Date-Received: Tue, 6-May-86 05:33:04 EDT References: <485@brl-smoke.ARPA> Reply-To: jpn@teddy.UUCP (John P. Nelson) Organization: GenRad, Inc., Concord, Mass. Lines: 15 In article <485@brl-smoke.ARPA> mike@BRL.ARPA (Mike Muuss) writes: > >set prompt=\!\ "`hostname`>"\ > >then this will cause the /bin/hostname program to be run FOR EVERY >PROMPT that the CSH prints out! Hmm. How to put this politely? This turns out not to be true. Backquotes within double quotes are evaluated at command expansion time - in other words hostname is called ONCE - during the set command. Don't beleve me? Try this: set prompt="`date` > " If the prompt ever changes, you are running something other than a vanilla csh!!!