Skip to content

Possible issue on Windows (cd vs pushd) #52

@malkia

Description

@malkia

Here cd is being used - https://github.com/theoremlp/rules_multitool/blob/main/multitool/private/cwd.template.bat#L2

Which may work, as long as everything is done from the same drive, but on Windows, cd does not change the current drive, e.g.:

D:\> c:
C:\> cd d:\somedir
C:\> d:
D:\somedir> cd c:\windows
D:\somedir> c:
C:\windows>

Notice how cd changes the directory, but not the current drive.

Instead pushd can be used which does it, as side effect it puts the current dir on the stack (much like sh).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions