Giter VIP home page Giter VIP logo

Comments (4)

aspiers avatar aspiers commented on May 29, 2024

Good catch. To be fair, it says -R is like -S after a -D, not that it's identical ;-)

Out of curiosity, does this lack of change to the links' timestamps cause a problem for you? And if so, how? I could look at changing the behaviour, but don't want to do that until I understand the use case.

from stow.

AlexAegis avatar AlexAegis commented on May 29, 2024

I just use an -S after a -D in my script now, and even if this change would be implemented I would still do so, because since then I added an option to not put the symlink back so the complexity of my script wouldn't change.

	stow -D -d "$1" -t "$2" "$3"
			[ "$stow_mode" = "stow" ] && \
				stow -S -d "$1" -t "$2" "$3"

My script handles dotfiles and I wanted to still be able to watch filechange events on the symlinks, triggered by my script on "restow"

So to boil it down, based on the description of the -R flag I would expect a filechange event, because it is like an -S followed by a -D 😉.

I wouldn't say it's super important, even just removing that "like" statement from the flags description would be a solution as that would remove this expectation. Or just clarify that it does not touch files that wouldn't change. (I think thats what it does now)

from stow.

aspiers avatar aspiers commented on May 29, 2024

Yeah good points thanks. I'm just wondering if there is actually an advantage to keeping it with this different behaviour, because then (assuming we clarified the difference in the docs) users could choose which of the two behaviours they want. What do you think?

from stow.

AlexAegis avatar AlexAegis commented on May 29, 2024

Tbh, at this point I'm not even sure whats the difference between -R and just running -S again.

from stow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.