home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!europa.asd.contel.com!emory!wupost!cs.utexas.edu!convex!constellation!midway.ecn.uoknor.edu!norlin
- From: norlin@midway.ecn.uoknor.edu (Norman Lin)
- Subject: Path variable (was Re: FLAME, FLAME ON X!!!)
- Sender: usenet@constellation.ecn.uoknor.edu (Usenet Administrator)
- Message-ID: <BxL77r.G16@constellation.ecn.uoknor.edu>
- Date: Thu, 12 Nov 1992 04:59:50 GMT
- References: <1683@igd.fhg.de> <RJC.92Nov11155141@daiches.cogsci.ed.ac.uk>
- Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
- Lines: 17
-
- In article <1683@igd.fhg.de>, Peter Baumann (pb) writes:
-
- >pb> Have you ever had something named X in your home directory when
- >pb> starting xinit? (I figure that each of us has "." at the beginning
- >pb> of the PATH variable...) - Nice effect.
-
- I thought it was generally accepted that having "." at the beginning of
- the PATH variable was a bad idea because of various nasty tricks
- such as, for instance, having a world-executable shell script named "ls"
- in a directory that contains the command "rm -rf ~". Then if you changed
- to that directory and typed "ls", you'd wipe out your directory, since
- "./ls" and not "/bin/ls" would be executed.
-
- Or is this something different?
-
- Norman
- norlin@mailhost.ecn.uoknor.edu
-