Re: Delete a Symbolic Link?



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
.



Relevant Pages

  • Re: Delete a Symbolic Link?
    ... removing the trailing / actually gets some useful ... So does leaving out the -r viz: ... steve@df1$ ls -l bar ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Removing end caps on Yakima racks
    ... >> Does anyone have tips on removing end caps from a Yakima rack cross bar? ... then insert a screwdriver in the hole and pry them out that way. ... slice off the top of the cap, then use the knife to cut through the plastic ...
    (rec.boats.paddle)
  • Re: PowerPoint File Menu not on menu bar
    ... Removing & reinstalling *rarely* does. ... go to View> Customize Toolbars & Menus. ... Select Built-In Menus in the Categories list then ... Menu Bar. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: Unused desktop shortcuts
    ... I can't work out how to remove this bar. ... removing this would be much appreciated ... Right-click on an empty area of it and choose "close". ...
    (microsoft.public.windowsxp.general)