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

RequiresShellIDInvalidForSingleShell #4508

Closed
6 tasks done
bcdady opened this issue Jul 1, 2019 · 1 comment
Closed
6 tasks done

RequiresShellIDInvalidForSingleShell #4508

bcdady opened this issue Jul 1, 2019 · 1 comment
Assignees
Labels
area-language Area - PowerShell syntax and keywords

Comments

@bcdady
Copy link
Contributor

bcdady commented Jul 1, 2019

about_Requires does not indicate any type of dependency between -ShellID parameter and -PSSnapin. Yet, if -ShellID is used in the #Requires statement (in this case, in my $Profile), then the following error is displayed:

. : A #requires statement has specified only a shellID. #Requires statements must specify a required Windows PowerShell snap-in when running in Windows PowerShell.
At line:1 char:3
+ . '...\WindowsPowerShell\Microsoft.Powe ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (Microsoft.PowerShell_profile.ps1:String) [], ScriptRequiresException
    + FullyQualifiedErrorId : RequiresShellIDInvalidForSingleShell

Issue Details

Version(s) of document impacted

  • Impacts 7 document
  • Impacts 6 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document
@sdwheeler sdwheeler added area-language Area - PowerShell syntax and keywords review-shiproom Waiting - for Shiproom discussion labels Jul 1, 2019
@SteveL-MSFT
Copy link
Contributor

-ShellId was intended for minishells which never took off. Since Windows PowerShell does require these two params to be used together, the docs should be updated to reflect this. For PS7, we should consider removing these params altogether.

@sdwheeler sdwheeler self-assigned this Jul 1, 2019
@sdwheeler sdwheeler removed the review-shiproom Waiting - for Shiproom discussion label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Area - PowerShell syntax and keywords
Projects
None yet
Development

No branches or pull requests

3 participants