Should "ls -R" traverse symlinks?

David Goodenough dg at lakart.UUCP
Wed Jun 7 00:12:18 AEST 1989


flee at shire.cs.psu.edu (Felix Lee) sez:
> No.  Not unless "ls -R" detects cycles and guarantees termination.
> If you really want to traverse links, "ls -RL" is almost adequate.

Agreed

> % A normal "ls -R" can still loop, but this should be uncommon.

Forgive my ignorance, but I don't see how - not unless you do some real dirty
mucking with a directory open as a file for write, and start messing with
Inode numbers in directory slots - or am I missing something.
-- 
	dg at lakart.UUCP - David Goodenough		+---+
						IHS	| +-+-+
	....... !harvard!xait!lakart!dg			+-+-+ |
AKA:	dg%lakart.uucp at xait.xerox.com		  	  +---+



More information about the Comp.unix.wizards mailing list