Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site plus5.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!plus5!hokey From: hokey@plus5.UUCP (Hokey) Newsgroups: net.bugs.usg Subject: PATH bug? Message-ID: <807@plus5.UUCP> Date: Thu, 1-Aug-85 02:25:38 EDT Article-I.D.: plus5.807 Posted: Thu Aug 1 02:25:38 1985 Date-Received: Fri, 2-Aug-85 00:45:18 EDT Organization: Plus Five Computer Services, St. Louis Lines: 47 Keywords: sh If the current directory is specified as the last directory searched using a trailing ":" instead of ":." (in $PATH) then sh will not find executable files in the current directory. The problem only seems to occur when the current directory is searched last. I have noticed this bug under Vr0 and Vr2. Is this problem more widespread than just my vendor? The following shar file demosntrates the bug using "make" on my machine. Additionally, if the unpacking is done in, for example, /tmp, the bug can also be demonstrated by the sequence: $ cd /tmp $ PATH=/: $ ls -l showbug -rwxrwxr-x 1 hokey usr 9 Aug 1 00:54 showbug $ showbug showbug: not found --- # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by hokey on Thu Aug 1 00:56:39 CDT 1985 # Contents: makefile showbug echo x - makefile sed 's/^@//' > "makefile" <<'@//E*O*F makefile//' # If the next line reads "PATH=/usr/bin:/bin:." then all is well. PATH=/usr/bin:/bin: SHELL=/bin/sh all: set ; showbug @//E*O*F makefile// chmod u=rw,g=rw,o=r makefile echo x - showbug sed 's/^@//' > "showbug" <<'@//E*O*F showbug//' echo Foo @//E*O*F showbug// chmod u=rwx,g=rwx,o=rx showbug exit 0 -- Hokey ..ihnp4!plus5!hokey 314-725-9492