Skip to content

Replace call to 'which' for Windows (native)#69

Open
Paebbels wants to merge 1 commit intoOSVVM:devfrom
Paebbels:paebbels/which-replacement-for-PoSh
Open

Replace call to 'which' for Windows (native)#69
Paebbels wants to merge 1 commit intoOSVVM:devfrom
Paebbels:paebbels/which-replacement-for-PoSh

Conversation

@Paebbels
Copy link
Member

OSVVM-Script calls which also on Windows platforms when it tries to find e.g. the GHDL executable and version. As reported in the past, this doesn't work on Windows e.g. in PowerShell, because Windows does not provide a which executable.

This PR implements the functionality of which by splitting $PATH into multiple directories. Each directory is checked if it contains ghdl.exe. If so, the TCL variable ghdl is set as before.

It was checked with TCL 9.0.2 and running TCL from PowerShell.

@Paebbels Paebbels requested a review from JimLewis January 11, 2026 11:38
@Paebbels Paebbels self-assigned this Jan 11, 2026
@Paebbels
Copy link
Member Author

This problem popped up again when testing Ruff!.

@Paebbels
Copy link
Member Author

Will this be merged or do you plan to implement another solution to the problem?

@Paebbels
Copy link
Member Author

Paebbels commented Feb 6, 2026

@JimLewis is this implemented as a different solution (then we can close this PR) or will it be merged?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant