-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolic Links With Terminating Slash Don't Function Properly #650
Comments
I can verify this. Symlinks to directories where the target contains double slashes (for example, |
I found that either link DryFS' target or symbolic on DryFS has this problem. |
Thank you for reporting this, this is definitely a bug. I've filed a bug internally and will start taking a look at a fix. |
Is this somehow related to Following symlinks does not work #600? |
Subscribed. I'm seeing this issue, too. With a "/" on the end of the symlink target path, it has trouble. |
Thanks for reporting this issue, this issue has been fixed internally and will be in a future flight. |
Can someone check if the tilda "~/" is causing issues with symlinks. The following code works ln -s /folder/folder /home/me/mylink And this following code does not work for me ln -s /folder/folder ~/mylink |
@hpssjellis -- both of the commands that you posted work correctly for me:
|
Weird. On a fresh install of Bash on Windows mine is now working for ln -s /mnt ~/mylink I did however find a work around if anyone else is having troubles with the ~/ ln -s /mnt /home/$USER/mylink which also works |
Issue is fixed in the new Insider build - 14901. |
@russalex I think the issue that is fixed is #671. |
Doh! @onomatopellan, you are correct. When testing I ran
This is fixed on an internal build. Should hit an Insider build before too long:
|
Guess what. I did the OPPOSITE of this and it worked for me. Omitting the slash after tmp made it work flawlessly. Go figure. |
Hey, I'm glad I found that this is a known issue and a fix is already in the pipeline - I've been encountering it as well. I just wanted to make a quick comment that the workaround of removing the trailing slash is often not viable in situations where the symlink is in a Git repo that is cloned as a dependency of something else. (In my case, building Riak from source involves several dependency repos with symlinks in them.) If the makefile runs Submitting a pull request to have the trailing slash removed in the Git repo would also not solve the problem if the program pulling it as a dependency is locked to a specific tag or version. Thanks for giving this your attention! I've been really impressed with WLS so far. The little edge cases like this are definitely the exception rather than the rule. |
According to https://msdn.microsoft.com/en-us/commandline/wsl/release_notes, this is fixed in Build 14905. |
Any idea when this build will be rolled out? I'm on 14393.222 and I got this (big) update only yesterday. |
Hey Guys. |
The team's focus is on providing new functionality and fixes to the Windows Insider builds. Only security updates and very select fixes will be pushed out through Windows Update to the 14393.x builds. We discuss this a bit on our WSDL blog here. |
Cleaning up some old issues and this one looks to have gone out to the wild. Marking as closed now. Please re-open if things still show incorrectly on the insider builds. |
Hi: This also seems to occur for directories with spaces in them. No / necessary |
RE-opening & assigning to @jackchammons for investigation/comment. |
@derekriemer What version of windows are you running? Use the |
Hey, This is fixed in creators (Now that I updated).
…On Tue, May 2, 2017 at 3:58 PM, Jack Hammons ***@***.***> wrote:
@derekriemer <https://github.com/derekriemer> What version of windows are
you running? Use the ver command in CMD.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#650 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFGivcwuiDurAlRT5xJH_2U5HDzP3DDHks5r16cCgaJpZM4JLE78>
.
--
Derek Riemer: Improving the world one byte at a time!
- University of Colorado Boulder Department of computer science, 4th
year undergraduate student.
- Accessibility enthusiast.
- Proud user of the NVDA screen reader.
- Open source enthusiast.
- Skier.
Personal website <http://derekriemer.com>
|
Brief Description:
I was trying to create a symbolic link to a specific directory on the Windows mount to my home dir for convenience. I did this using auto complete with a TAB (which added a terminating slash). Then I quickly discovered that the symbolic link created was only ever returning the dir that was directly linked to (never anything deeper - even if specify an invalid path). I fixed this by creating the link without the terminating slash, and that worked fine. However, I still wanted to report the problem in case it helps in some other context, or just so others know about this odd behavior. See commands below to see what I mean.
Windows build number:
14388.0
Commands to Reproduce the Error:
Notice how in the first command, I demonstrate that the
github
directory is actually empty, but when I use the symbolic link, it returns the contents of the directory that the link points to. Likewise, event when I specify an invalid path, it will always return the contents of the directory the link points to.The text was updated successfully, but these errors were encountered: