8000 Throw terminating error in New-TemporaryFile and make it not rely on the presence of the 'TEMP' environment variable by bergmeister · Pull Request #6182 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Throw terminating error in New-TemporaryFile and make it not rely on the presence of the 'TEMP' environment variable #6182

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

Merged
Prev Previous commit
Next Next commit
make help uri culture invariant
  • Loading branch information
bergmeister committed Feb 18, 2018
commit 0a3b51af6ea4d0d5e02b16a77e6d35c2222ddcce
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.PowerShell.Commands
/// <summary>
/// The implementation of the "New-TemporaryFile" cmdlet
/// </summary>
[Cmdlet(VerbsCommon.New, "TemporaryFile", SupportsShouldProcess = true, HelpUri = "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/new-temporaryfile")]
[Cmdlet(VerbsCommon.New, "TemporaryFile", SupportsShouldProcess = true, HelpUri = "https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/new-temporaryfile")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert the change - we should use official short link.

Copy link
Contributor Author
@bergmeister bergmeister Feb 18, 2018

Choose a reason for hiding this comment

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

< 8000 /div>

Well, the official short link is broken...
Is it possible that the existing link can get fixed without changing the URL? Should I raise a separate issue for it? Repro is as simple as Get-Help New-TemporaryFile -Online

Copy link
Collaborator

Choose a reason for hiding this comment

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

Feel free to open new Issue if the link is broken.

Copy link
Member

Choose a reason for hiding this comment

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

Agree w/ @iSazonov, we should keep the temp link and have separate issue to fix that link. cc @joeyaiello

[OutputType(typeof(System.IO.FileInfo))]
public class NewTemporaryFileCommand : Cmdlet
{
Expand Down
0