"Ferguson, Neale" <[EMAIL PROTECTED]> wrote: > > How does the command 'which' work? The symbolic link /proc/self/exe will > point to the absolute path.
'which' looks at your PATH environment variable - looking for the file name you gave it as a parameter.... as in, "If I were to execute this command, 'which' file would it run?" Also - looking at /proc isn't portable - different UNIXes uses different /proc structures (some don't have it at all..) But, that may not matter in the "modern era". - Dave Rivers - -- [EMAIL PROTECTED] Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com