Skip to content
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

Q doesn't work on Windows #167

Open
muellerto opened this issue Nov 2, 2022 · 0 comments
Open

Q doesn't work on Windows #167

muellerto opened this issue Nov 2, 2022 · 0 comments

Comments

@muellerto
Copy link

Describe the bug
Q (quit and change directory) doesn't work on Windows.

To Reproduce
Type Q on Windows :)

Additional context
The problem is here that the current directory of the parent process must be changed after clifm (the child process) has ended. That's why a shell script is used on Unix like operating systems.

On Windows the parent process is mostly cmd.exe, the Windows command interpreter. This would need at least a real batch file with a chdir in it but I'm not sure how to start it.

But it fails also when I use a real shell like GNU bash as the parent process on Windows. Perhaps a reason is that the COMSPEC environment variable contains still cmd.exe in this case. Instead there's an additional BASH variable in this case, also a SHELL variable containing bash. But, I see the problem: every shell has it's own variables - how to find the shell that is really used?

Not that important, I just saw it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants