-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
recursive search for files using /... -x doesn't work on Windows #264
Comments
Hi @muellerto. Recursive search ( To make sure, I added some debugging messages to the function. To enable them, edit CFLAGS += -Wall -Wextra -DCLIFM_DATADIR=$(DATADIR) -DDEBUG_SEARCH Compile as always and the run the search function with the a. The actual command executed ( Please report the results. |
Ah! Windows has it's own damned find ( Of course I have a nice Unix find working great. But I had to symlink it to Will see what I can do. |
I see. I guess it depends on the installation: in my Windows box it works as expected. Please let me know what you find. |
It depends on the executable's path. And this is tricky. Windows has two paths:
The user path is automatically appended to the system path, and that is what the user gets after logon. You can't change this. If now a user wants to have a special private implementation of a command which is already in the system path it gets really difficult. And in my case already the very first directory in the system path contains this Windows find, so I can't put my Unix find symlink in any earlier directory in the path, there is no earlier directory. So I added now indeed a new directory at the beginning of the system path which contains only a symlink to my Unix
Probably you installed MinGW for all users, then it's bin directories get into the system path and you can put them at the beginning. - I have it private, only for me as user, the other users don't see it, that's why I have it in the user path. Thinking ... Ha, I have still another opportunity: I start clifm not directly as |
Oh Windows, you did it again! But, seriously, could you share your batch file (with the modified PATH) in case other users need it? Btw, I'll revert the changes made in the last commit. |
Assume I have a directory with the name Then my batch file looks as follows:
Two ideas:
|
Thanks @muellerto! Regarding your two ideas, I will definitely consider them. Please feel free to contribute yourself to the Wiki. EDIT: Some of your suggestions are (at least partially) addressed here: |
Tentative list of runtime dependencies. |
Looks good. And doesn't contain further collisions with Windows programs, good so.
|
True. Added. |
Describe the bug
When I start a recursive file search using
/... -x
I never find something.To Reproduce
File search in the current directory works fine:
When I now add a
-x
to the same command it does nothing anymore:It seems that it doesn't even start any search. I can do what I want, I never get a result this way.
Expected behavior
In my example I would expect that it shows the same files as above plus some more files from the sub directories.
Desktop
The application has been compiled on MinGW using gcc 13.2.0.
Additional context
This is specific for Windows. On my Linux machine it works as expected.
SearchStrategy is 0 in my case, but it doesn't depend on that.
The text was updated successfully, but these errors were encountered: