Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!floyd!cmcl2!seismo!rlgvax!cvl!elsie!ado From: ado@elsie.UUCP Newsgroups: net.unix-wizards Subject: Automatic Csh rehashing? Message-ID: <960@elsie.UUCP> Date: Mon, 11-Jun-84 17:12:36 EDT Article-I.D.: elsie.960 Posted: Mon Jun 11 17:12:36 1984 Date-Received: Tue, 12-Jun-84 06:58:34 EDT Organization: NIH-LEC, Bethesda, MD Lines: 19 "Csh" does hashing to cut down on the number of directories that get searched when you ask for a command to be executed. If you add a command to a directory in your path after the hash table is created, you get to use the built-in rehash command to ensure that Csh is able to find the added command. I'm thinking that rehashing by hand can be avoided if, when "Csh" gets to a place where it produces a Command not found diagnostic, it automatically does a rehash and tries to find the command a second time. (Yes, this does slows down production of the diagnostic when the command REALLY is missing. Would "set noautorehash" calm gurus? :-)) Any reactions? Has anyone done this for 4.1 bsd? Does it show up in 4.2? Tap that 'r' key and mail me your reply. Thanks. -- UNIX is an AT&T Bell Laboratories trademark. -- ...decvax!allegra!umcp-cs!elsie!ado (301) 496-5688