Skip to content

Remove Windows branding - #1738

Merged
Jason Shirk (lzybkr) merged 1 commit into
masterfrom
cchen/bugfix
Aug 11, 2016
Merged

Jason Shirk (lzybkr) merged 1 commit into
masterfrom
cchen/bugfix

Conversation

@chunqingchen

@chunqingchen Chunqing Chen (chunqingchen) commented Aug 11, 2016 •

Copy link
Copy Markdown
Contributor

According to Joey's latest update, the decision made by lawyer is like following:

Basically, there's Windows PowerShell (which is FullCLR based) and PowerShell Core (which is CoreCLR based and works on Windows, Mac, Nano, Linux). The former, Windows PowerShell, should still say Windows PowerShell. The latter, PowerShell Core, should just say PowerShell
And all of them should keep the copyright

Please add Joey for review as well.

#if CORECLR
exitCode = Microsoft.PowerShell.ConsoleShell.Start(
configuration,
ManagedEntranceStrings.ShellBannerNonWindowsPowerShell,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not have just guarded this one line?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of preprocessor directives inside method calls. That said, it would be cleaner to use a local variable, like:

#if CORECLR
var banner = ...
#else
var banner = ...
#endif
exitCode = Microsoft.PowerShell.ConsoleShell.Start(
    configuration,
    banner,
...

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants