Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!clyde!cbosgd!osu-eddie!dsacg1!dsacng1!naa1810 From: naa1810@dsacng1.UUCP (Bill Bereza) Newsgroups: comp.unix.questions Subject: $PATH glitch? -- Gould Powernode Message-ID: <155@dsacng1.UUCP> Date: Fri, 24-Jul-87 14:41:41 EDT Article-I.D.: dsacng1.155 Posted: Fri Jul 24 14:41:41 1987 Date-Received: Sat, 25-Jul-87 17:34:57 EDT Organization: Defense Logistics Agency Systems Automation Center, Battle Creek, MI Lines: 31 Keywords: PATH shell environment I recently experienced what I consider an inconsistency with my PATH variable. I had appended my bin directory path to the PATH variable. I had an existing shell script named "de" in my bin directory that simply executed the Unix date command. After I signed on the system in the C Shell, I did the following commands: cp de de2 cp de dee which de2 which dee de2 dee All worked properly. I then did: cd / de2 dee Much to my amazement, 'dee' did not work--I received "Command not found" from the system. 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. I also noted that when I logged off and then back on, all my bin shell scripts would properly execute from any cwd. If anyone can explain to me what is going on with my PATH variable, I would greatly appreciate it. THANKS.