duplicateTab says "This makes a copy of the current tab and opens it." but what is copied ? #13135

Closed
opened 2026-01-31 03:34:42 +00:00 by claunia · 2 comments
Owner

Originally created by @Pasb4js on GitHub (Mar 22, 2021).

Here:
https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions
I read

**Duplicate tab**
This makes a copy of the current tab and opens it.

but what is copied ? What is the difference with a "New tab" ?
I mean: not what was printed previously in cmd.exe for example.

And, for cmd.exe, modified/added ENV VARIABLES are not "copied" =)

Originally created by @Pasb4js on GitHub (Mar 22, 2021). Here: [https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions) I read ``` **Duplicate tab** This makes a copy of the current tab and opens it. ``` but what is copied ? What is the difference with a "New tab" ? I mean: not what was printed previously in cmd.exe for example. And, for cmd.exe, modified/added ENV VARIABLES are not "copied" =)
Author
Owner

@skyline75489 commented on GitHub (Mar 22, 2021):

Boy where do I start. First with "new tab", the profile used will always be the default profile. With "duplicate tab", the profile used to create the tab will be the same as the current tab (the "source" of the duplication). Second, you can also duplicate the current working directory in the tab. See #3158 for instructions. And finally, the environment variables not being copied is a known issue. See #1125.

@skyline75489 commented on GitHub (Mar 22, 2021): Boy where do I start. First with "new tab", the profile used will always be the default profile. With "duplicate tab", the profile used to create the tab will be the same as the current tab (the "source" of the duplication). Second, you can also duplicate the current working directory in the tab. See #3158 for instructions. And finally, the environment variables not being copied is a known issue. See #1125.
Author
Owner

@zadjii-msft commented on GitHub (Mar 22, 2021):

You know, this is a good docs bug, so I'm moving it over to https://github.com/MicrosoftDocs/terminal/issues/292.

As skyline75489 mentioned, the profile and working directory are duplicated, but not the underlying processes (because that would be impossible)

@zadjii-msft commented on GitHub (Mar 22, 2021): You know, this is a good docs bug, so I'm moving it over to https://github.com/MicrosoftDocs/terminal/issues/292. As skyline75489 mentioned, the profile and working directory are duplicated, but not the underlying processes (because that would be impossible)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13135