You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
@SeanSnyders could you give a more complete example? It's not clear what source and link are supposed to be in your example. If one of those is supposed to be a pre-existing file, could you include the sample code which creates that?
When I run your script, I get:
ln: Source file does not exist
Which makes sense, because I don't have source on my disk.
Not sure if it is related to #829 because it works for me on macOS.
Yes, source and link are example folder names. It is not intended to run as-is on your machine.
The source being the folder to link to, and link being the link you are trying to create (typical ln semantics: see man ln)
And of course I cannot give you an exact code example as it depends on exact folders being present on your machine as to mine, which is not possible.
The error is as I described when trying to run shell.ln with the dest parameter a path that is already a valid symbolic link. In other words, I am trying to replace my existing symbolic link with a new one thus using the force -f flag.
I'm not sure what "it" is. What works on macOS? Does that same thing not work on Linux or some other OS?
depends on exact folders being present on your machine as to mine, which is not possible.
Or you could write a script which creates those precondition folders/files/symlinks 😄 ln('-sf', 'source', 'link') is obviously not clear enough: you're just quoting the docs for how to use ln(), not explaining the issue.
I'm happy to investigate the issue, but it helps to have a script I can run in an empty working directory to reproduce the problem (and so that I can compare against unix behavior).