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

about_Prompts contains incorrect information about the default prompt #10357

Closed
sdwheeler opened this issue Aug 21, 2023 · 0 comments · Fixed by #10358
Closed

about_Prompts contains incorrect information about the default prompt #10357

sdwheeler opened this issue Aug 21, 2023 · 0 comments · Fixed by #10358
Assignees

Comments

@sdwheeler
Copy link
Contributor

sdwheeler commented Aug 21, 2023

Can I ask what happened with about_Prompts? It appears to erroneously claim the following:

### BUILT-IN PROMPT

PowerShell includes a built-in Prompt function.

```powershell
function prompt {
    $(if (test-path variable:/PSDebugContext) { '[DBG]: ' }
    else { '' }) + 'PS ' + $(Get-Location) `
    + $(if ($nestedpromptlevel -ge 1) { '>>' }) + '> '
}
```

This incorrect claim was carried over into the later versions of the documentation as well. Shouldn't this be an example of an altered prompt? Because as far as I can tell, this has been the built-in prompt for quite a while:

function prompt {
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225750
# .ExternalHelp System.Management.Automation.dll-help.xml
}

Originally posted by @ImportTaste in #1907 (comment)

@sdwheeler sdwheeler changed the title Can I ask what happened with about_Prompts? It appears to erroneously claim the following: about_Prompts contains incorrect information about the default prompt Aug 21, 2023
@sdwheeler sdwheeler self-assigned this Aug 21, 2023
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 a pull request may close this issue.

1 participant