Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!buhub!data From: data@buhub (Mark Hall) Newsgroups: comp.unix.shell Subject: Re: Dot in PATH? Message-ID: <1991Jan28.003846.25111@bradley.bradley.edu> Date: 28 Jan 91 00:38:46 GMT References: <1991Jan24.203423.25084@ux1.cso.uiuc.edu> <1991Jan24.221552.5906@bradley.bradley.edu> <5528@auspex.auspex.com> Sender: news@bradley.bradley.edu Distribution: comp Organization: Bradley University Lines: 27 In <5528@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: > You thought incorrectly; UNIX shells, and the "exec[lv]p()" routines, > check only if "." is in the current command search path. Well, let me show you something: in my .profile is this path command: > PATH=:/usr/lbin:/usr/local/bin:/bin:/usr/bin:$HOME:$HOME/BIN:$HOME/USR:/usr/tmp:/tmp:/tmp/talk: if I run a program in the current directory (and it's not in my path command) my shell looks in the current directory FIRST. This is also the way MS-DOS works, but that's a different notes-group. This is why I made the original comment. I grant that other shells may not work this way (I'm not saying that they have to be alike), but my shell DOES treat my commands this way. BTW: I'm running UNIX SYSTEM V v3.2(i think) #disclaimer: technical errors mine, errors in flame-direction, yours. -- | Internet: data@{bucs1,buhub}.bradley.edu, al632@cleveland.freenet.edu | |-----------------------------------------------------------------------------| | F'net : 1:232/28 1:2250/9 (fname.lname@f.n.z.fidonet.org) | |-----------------------------------------------------------------------------| | "He sees you when you're sleeping, he knows when you're awake, but Captain, | | it makes no sense!" "But Spock, with Santa, ALL things are possible!" | | Kirk and Spock...Hallmark Greeting Cards |