Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

"ln" (linking command) - --force flag not working

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
RealityMage
Apprentice
Apprentice
User avatar
Posts: 151
Joined: Mon Dec 15, 2003 3:24 am
Contact:
Contact RealityMage
Website

"ln" (linking command) - --force flag not working

  • Quote

Post by RealityMage » Sun Sep 26, 2004 7:07 pm

Hello,

According to the manpage, if I have the "--force" flag on my "ln" command, it should remove existing destination files.

Say I execute a "ln -sf destination2 target", but there is already a symbolic link from "target" to "destination1". In that case, the expected behavior is to have the symbolic link removed, then relinked to "destination2". The real behavior is that nothing happens.
http://tommy.impulsestorm.com/
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun Sep 26, 2004 11:33 pm

You're sure that nothing happens ? If target is a directory there should be a symlink target/destination2 -> destination2. To get the behavior you want you also have to use the -n option.
Top
RealityMage
Apprentice
Apprentice
User avatar
Posts: 151
Joined: Mon Dec 15, 2003 3:24 am
Contact:
Contact RealityMage
Website

  • Quote

Post by RealityMage » Sun Sep 26, 2004 11:50 pm

You're totally right. I totally didn't notice. Thanks for your help.

I was thinking: Wow! I wonder why no one else had discovered this huge bug! :D
http://tommy.impulsestorm.com/
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic