Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!mcnc!gatech!amdcad!tim From: tim@amdcad.AMD.COM (Tim Olson) Newsgroups: comp.unix.questions Subject: Re: $PATH glitch? -- Gould Powernode Message-ID: <17852@amdcad.AMD.COM> Date: Sat, 8-Aug-87 13:59:42 EDT Article-I.D.: amdcad.17852 Posted: Sat Aug 8 13:59:42 1987 Date-Received: Sun, 9-Aug-87 11:43:54 EDT References: <155@dsacng1.UUCP> <6175@brl-smoke.ARPA> <4092@ncoast.UUCP> Reply-To: tim@amdcad.UUCP (Tim Olson) Organization: Advanced Micro Devices, Inc., Sunnyvale, Ca. Lines: 29 Keywords: PATH shell environment In article <4092@ncoast.UUCP> robertd@ncoast.UUCP (Rob DeMarco) writes: +----- |>In article <6175@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: |>>In article <155@dsacng1.UUCP> naa1810@dsacng1.UUCP (Bill Bereza) writes: |>>>I further experimented and found out that I could not execute a |>>>new shell script that I created in my bin directory from any directory |>>>path except when my cwd was my bin directory. |>> |>>Sounds like you corrupted your $PATH. The reason it worked |>>when your cwd was your bin directory is that then the "." or |>>"" in your $PATH found the command. |> |> This same thing happened to me. When I create a new shell script and put it |>in my bin directory. It wount execute except when I am IN the directory. This |>would remain in effect untill I logged off or called up csh again. I just |>excepted that and tried to live with it. I guest cshell (and shell too?) |>stores those files in memory so it doesn't have to keep physically searching |>for a command and waist time. Can some one offer help in why it really does |>this? +----- Did you "rehash" after you installed the program in your bin directory? csh keeps a hash table of all executable programs it finds when it searches your $PATH, and won't find any new executables. You can force it to research your $PATH by typing "rehash". -- Tim Olson Advanced Micro Devices (tim@amdcad.amd.com)