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

Operating system specific versions of shell commands + shell selection #76

Closed
Tracked by #100
Taitava opened this issue Oct 17, 2021 Discussed in #38 · 3 comments
Closed
Tracked by #100

Operating system specific versions of shell commands + shell selection #76

Taitava opened this issue Oct 17, 2021 Discussed in #38 · 3 comments
Labels
enhancement New feature or improving change refactoring Rearranging internal stuff that does not show so much to the user.
Milestone

Comments

@Taitava
Copy link
Owner

Taitava commented Oct 17, 2021

Discussed in #38

Write possible comments to the above mentioned discussion. This task is just for Roadmap planning, branching, and time logging.

@Taitava Taitava added the enhancement New feature or improving change label Oct 17, 2021
@Taitava Taitava added this to the 0.7.0 milestone Oct 17, 2021
Taitava added a commit that referenced this issue Oct 17, 2021
…port.

These changes are not tested at all! This is completely incomplete!
@Taitava Taitava added the refactoring Rearranging internal stuff that does not show so much to the user. label Oct 29, 2021
Taitava added a commit that referenced this issue Oct 29, 2021
# Conflicts:
#	src/settings/ShellCommandExtraOptionsModal.ts
Taitava added a commit that referenced this issue Oct 29, 2021
Taitava added a commit that referenced this issue Oct 30, 2021
Taitava added a commit that referenced this issue Nov 6, 2021
Taitava added a commit that referenced this issue Nov 6, 2021
@Taitava
Copy link
Owner Author

Taitava commented Nov 6, 2021

A possible backwards incompatible change

SC versions prior to 0.7.0 used /bin/sh as a shell on Linux and Mac (/bin/sh came as a default value from Node.js's child_process).

  • Linux & Mac: 0.7.0 changes this so that the default shell is retrieved from the current user's $SHELL environment variable. The reason for this change is that I think it's more logical to use a default shell that is defined in the operating system's user's preferences, rather than a hardcoded default shell defined by Node.js, as not many users even know that it comes from Node.js, and not many users know what Node.js is.
  • On Windows, default shell is retrieved from COMSPEC environment variable, and this has not changed.
  • These are only defaults, and a user can change these shells in settings.

If a shell has changed for you, your shell commands might run a bit differently after this upgrade.

@Taitava
Copy link
Owner Author

Taitava commented Nov 6, 2021

This feature should also be pretty well baked at the moment. Let's see how it performs in the beta test.

@Taitava
Copy link
Owner Author

Taitava commented Nov 25, 2021

Done & released.

@Taitava Taitava closed this as completed Nov 25, 2021
Taitava added a commit that referenced this issue Jul 20, 2022
…sTab.

The mistake was made in commit 0dc54b2 / #76 when moving the logic to a separate file/function.

The mistake did not cause any problems in practise, because nothing actually used the reference. #243 needs to use it, so that's why I fixed it while doing #243.

I don't understand why TypeScript compiler does not yell about this kind of mistakes. When 'this' refers to a function, it's a completely different thing than a specific class 'SC_MainSettingsTab'.
Taitava added a commit that referenced this issue Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improving change refactoring Rearranging internal stuff that does not show so much to the user.
Projects
None yet
Development

No branches or pull requests

1 participant