Skip to content

New tabs don't launch in the directory of the first tab when launching WT via cmd.exe shorthand #14761

Open

Description

Windows Terminal version

1.15.3466.0

Windows build number

10.0.22621.1105

Other Software

No response

Steps to reproduce

Reproduce actual (broken) behaviour:

  1. When in a particular folder with Explorer, open Terminal by typing "cmd" in the address bar
  2. Create a new tab in the opened Terminal window

Reproduce expected behaviour:

  1. When in a particular folder with Explorer, open Terminal by typing "wt" in the address bar
  2. Create a new tab in the opened Terminal window

Expected Behavior

The new tab should have the same working director as the first tab, if settings.json is correctly setup.
This is already the case when launching Terminal through the "wt" shorthand, but not via "cmd".

Actual Behavior

The new tab always starts in "C:\Windows\System32" regardless of the starting directory of the first tab.
When launching Terminal through the "wt" shorthand, the new tab will start in the correct directory.

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 30, 2023
  2. added
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 1, 2023
  3. zadjii-msft commented on Feb 1, 2023

    @zadjii-msft
    Member

    Notes:

    Or, you could set up your CMD prompt to emit the CWD and then duplicateTab would just do the right thing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DefAppIssue-BugIt either shouldn't be doing this or needs an investigation.Issue-TaskIt's a feature request, but it doesn't really need a major design.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions