8000 Make the new, future no-profile CLI for use in shebang lines implement other CLI fixes too · Issue #8072 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Make the new, future no-profile CLI for use in shebang lines implement other CLI fixes too #8072

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

Closed
mklement0 opened this issue Oct 18, 2018 · 6 comments
Labels
Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif WG-Interactive-Console the console experience WG-NeedsReview Needs a review by the labeled Working Group

Comments

@mklement0
Copy link
Contributor
mklement0 commented Oct 18, 2018

Follow-up from a conversation with @SteveL-MSFT in #7989.

PowerShell's existing CLI has a number of problems, relating to:

The existing CLI cannot be fixed so as not to break backward compatibility, but it was agreed that (a) would be fixed by way of a new, separate executable/symlink, notably for use in shebang lines of stand-alone shell scripts on Unix-like platforms.

More broadly, however, this new CLI is an opportunity to fix (b) and (c) as well, which would go a long way toward endearing PowerShell to CLI-savvy Unix users.

Essentially, it would provide a new CLI that is a well-behaved cross-platform citizen with sane defaults.
(As such the profile-loading behavior should mimic Bash's - only load $PROFILE in interactive shells by default).

Note: The new behavior needn't be a separate binary: The behavior variation could be triggered by invocation via symlink whose name indicates the need to apply alternate behavior, at least on Unix-like platforms. (Invoking .NET Core executables via symlinks on Windows is not yet supported, but will hopefully come in .NET Core 3.0 - see https://github.com/dotnet/core-setup/issues/4080)

Given the then-broader scope, the originally proposed name pwsh-np needs revising, however.

Environment data

Written as of:

PowerShell Core 6.1.0
@SteveL-MSFT SteveL-MSFT added WG-Interactive-Console the console experience Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif labels Oct 19, 2018
@SteveL-MSFT
Copy link
Member

Whatever name we choose, we also need to consider pwsh-np-preview

@mklement0
Copy link
Contributor Author

I don't understand, @SteveL-MSFT: why *-preview?

@SteveL-MSFT
Copy link
Member

@mklement0 we want to maintain a consistent separation of the stable and preview releases so I would think we'd have pwsh, pwsh-preview like we have today, along with pwsh-np and pwsh-np-preview

@mklement0
Copy link
Contributor Author
mklement0 commented Oct 21, 2018

Ah, of course, thanks @SteveL-MSFT.

Any thoughts on a suitable new name that reflects the scope and intent of the changes?

psh, perhaps? (OK, just kidding).

Naming is tricky, because the name should be kept short, so I fear it'll come down to documenting things well.

pwshc? (with the c standing for (a proper) CLI).

@tbakerweb
Copy link

Hey @SteveL-MSFT, It isn't clear in this issue, could you please specify if/when/where the Streams output to the associated File Descriptors from #7989 will show up. I'm very interested in this feature and was quite sad when I realized it didn't already exist :(.

Thanks for your contributions!

@sdwheeler
Copy link
Collaborator

@mklement0 Thanks for collecting these issues in one meta-issue. All of the linked issue have been closed but there is room for more discussion. The WG reviewed this and decided it would be better served by moving this issue to a GitHub Discussion where the community can help us with requirements and decisions for a future solution.

@PowerShell PowerShell locked and limited conversation to collaborators May 29, 2024
@theJasonHelmick theJasonHelmick converted this issue into discussion #23872 May 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Issue-Discussion the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif WG-Interactive-Console the console experience WG-NeedsReview Needs a review by the labeled Working Group
Projects
None yet
Development

No branches or pull requests

5 participants
0