Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!mcs.kent.edu!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.unix.internals Subject: Re: Should find traverse symbolic links? Message-ID: <1991Mar3.003300.23940@NCoast.ORG> Date: 3 Mar 91 00:33:00 GMT References: <1991Feb25.130613.2553@phri.nyu.edu> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.unix.internals Organization: North Coast Public Access Un*x (ncoast) Lines: 27 As quoted from by bzs@world.std.com (Barry Shein): +--------------- | Seems to me that find needs a flag which instructs it to follow | symlinks and leave it to the user whether this is a good idea or not. | It should be off by default, analogous to "ls"s -L flag (on BSD | systems.) | | For now you could probably kludge it with a "-type l" and -exec of | another find on the real path if it's a dir, but i'll fully admit | that's ugly and hairy. +--------------- The Altos systems at work (aside from the 5000, which runs SCO Pseudnix and therefore doesn't have symlinks... d*mmit) have a "find" which understands the "-nosym" option. It prevents traversal of symlinks --- the opposite of what you're asking for. It's notable that I don't use -nosym often, except for cpio backups. That means I use it about one day a week, and ignore the option the other 4 work days.... ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY