Re: Delete a Symbolic Link?
- From: per@xxxxxxxxxxxx (Per Hedeland)
- Date: Sun, 12 Mar 2006 20:55:07 +0000 (UTC)
In article <20060312080348.bc6ab230.steveo@xxxxxxxxxx> Steve
O'Hara-Smith <steveo@xxxxxxxxxx> writes:
On Sat, 11 Mar 2006 15:22:24 +0000 (UTC)
per@xxxxxxxxxxxx (Per Hedeland) wrote:
In article <20060311122256.7f7f3490.steveo@xxxxxxxxxx> Steve
O'Hara-Smith <steveo@xxxxxxxxxx> writes:
It's the combination - removing either the -r or the trailing /
stops the damage, but IMHO removing the -r is better viz:
On the other hand, removing the trailing / actually gets some useful
work done.:-)
So does leaving out the -r viz:
steve@df1$ ls -l bar
lrwxrwxr-x 1 steve wheel 3 Mar 11 12:20 bar -> foo
steve@df1$ rm bar
steve@df1$ ls -l bar
ls: bar: No such file or directory
No, you left out *both* - leaving out the / was what made the rm work,
see the transcript in your own previous posting for the result of
leaving out *only* the -r.
But I've already agreed several times that you shouldn't use the -r
either, so I don't know why you keep repeating this - the point I'm
trying to make is just that you (the general "you") should understand
what the actual problem was - namely, that the trailing / changed the
meaning of the pathname argument from being the symlink to being the
directory that the symlink pointed to.
--Per Hedeland
per@xxxxxxxxxxxx
.
- References:
- Delete a Symbolic Link?
- From: Ditch Brodie
- Re: Delete a Symbolic Link?
- From: Steve O'Hara-Smith
- Re: Delete a Symbolic Link?
- From: Per Hedeland
- Re: Delete a Symbolic Link?
- From: Steve O'Hara-Smith
- Delete a Symbolic Link?
- Prev by Date: Re: Postfix install causes hiccup for fetchmail
- Next by Date: Re: Need help with media player for mozilla or firefox
- Previous by thread: Re: Delete a Symbolic Link?
- Next by thread: Re: Delete a Symbolic Link?
- Index(es):
Relevant Pages
|