-
Notifications
You must be signed in to change notification settings - Fork 213
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
test -e
fails on (healthy) symlink
#46
Comments
I thought so, but it doesn't match your report. There was a bug in the last commit before the FRP-4716 release (which is the version used in w64devkit 1.17.0). It was later fixed. But that related to relative symlinks, an absolute symlink should be OK. I can reproduce your problem in w64devkit if the symlink is relative but not if it's absolute. |
I'm also unable to reproduce the issue for absolute symlinks. I tested in
an isolated "home=." w64devkit.ini config run as administrator (instead of
changing the overall system configuration regarding symlinks):
# mkdir tmp
# echo hello >tmp/README.out
# ln -s "$PWD/tmp/README.out" tmp/symlink
# test -e tmp/symlink && echo ok
ok
# busybox test -e tmp/symlink && echo ok
ok
Unless you've added another one, there should only be one shell, busybox
ash, on your path and when you invoke "test" I believe busybox ash prefers
its built-in test versus the "test.exe" alias I put in bin/, which agrees
with your "which" output. (You could delete or move it as another test.)
When you use "busybox test" I believe it's starting another process.
Since it's now possible to build busybox in w64devkit, you could compile a
debug build, open it in w64devkit's own GDB, set a breakpoint in the test
app, start sh, run your test, then step through "test -e". This was to be
my own next step if I could reproduce. I recommend "set new-console" so
that the shell runs in its own console window, leaving the original
console to GDB. If you want to regain control in GDB without killing the
shell process, run w64devkit's "debugbreak" command from anywhere, even
the debuggee.
|
Thank you, guys. At the moment I'm also unable to reproduce it. :-o (With new files, as that previous tmp dir was gone.) BTW, Git's shell is also on the path, FWIW, but it comes later (line-breaks added for easier reading):
|
I'm closing this "tentatively", as nobody else seems to have had anything similar apparently, and even I don't have it any more... And it feels so bad to have this crosshair on your nice project. :) |
Wait, I even found a typo in the original report, which I have now fixed, retrospectively... I have no idea now if that could have been the actual cause of the anomaly, as originally I noticed the problem in a different context (a script misbehaving), where there was no such typo. |
:-o
But wait, there's more:
:-oo
Any idea, what can cause this?
The text was updated successfully, but these errors were encountered: