[EMAIL PROTECTED] writes:
> rm will, unless specifically denied (I THINK you can do that), also follow symlinks.
> In my case I was copying files from one HD to another, put one in the wrong
> place, and deleted it using rm -rf , only to find that it deleted the original
> as well! :-(
Eh?
> PS I think rm needs looking at so it defaults to NOT deleting copy AND source by
> default.
[502] (be-well) lowell> mkdir temp
[503] (be-well) lowell> cd temp
[504] (be-well) temp> mkdir a b
[505] (be-well) temp> touch a/foo
[506] (be-well) temp> ln -s a/foo b/baz
[507] (be-well) temp> ls -l a b
a:
total 0
-rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo
b:
total 0
lrwxr-xr-x 1 lowell lowell 5 Jan 30 22:05 baz@ -> a/foo
[508] (be-well) temp> rm -rf b
[509] (be-well) temp> ls -l *
total 0
-rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo
[510] (be-well) temp>
Can you explain what you think is a problem?
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message