Commit graph

2216 commits

Author SHA1 Message Date
Aditya Patwardhan 49b7faa817
Move PowerShell build to .NET 5 RC.2 (#13780) 2020-10-14 11:04:39 -07:00
Dongbo Wang 5025d468f3
Update PSReadLine version to 2.1.0-rc1 (#13777)
* Update PSReadLine version to 2.1.0-rc1

* Update the file 'files.wxs'
2020-10-14 09:58:09 -07:00
Dongbo Wang 2728574df7
Rename 'Get-Subsystem' to 'Get-PSSubsystem' and fix two minor issues (#13765) 2020-10-14 09:42:37 -07:00
Steve Lee 16cc9aaaf8
Fix blocking wait when starting file associated with a Windows application (#13750)
* Fix blocking wait when starting file associated with a Windows application in elevated process

* refactor check if app is WindowsApp
2020-10-07 12:58:24 +05:00
Steve Lee fc8ca61b3d
Revert "Change PSNativePSPathResolution to not be Experimental" (#13734)
* Revert "Change `PSNativePSPathResolution` to not be Experimental (#13522)"

This reverts commit 74c743d279.
2020-10-03 21:20:24 +05:00
Travis Plunk de6966a9fc
markdownlint security updates (#13730)
* security updates

* exclude markdown test changes from product CI is future
2020-10-02 09:51:09 -07:00
Steve Lee 9bf512ff5d
Emit warning if ConvertTo-Json exceeds -Depth value (#13692) 2020-09-28 21:22:40 +05:00
Steve Lee 36ba1092a8
Fix case where exception message contains "`n" on Windows (#13684) 2020-09-24 23:43:33 +05:00
Dongbo Wang 10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07:00
David Reis 3effa20410
Recognize CONOUT$ and CONIN$ as reserved device names (#13508) 2020-09-14 11:10:12 -07:00
Steve Lee d25d964d57
Fix ConciseView for interactive advanced function writing error (#13623) 2020-09-14 11:07:37 -07:00
Robert Holt dd4bd716c8 Merged PR 12589: Add Microsoft.NET.Test.Sdk dependency
Also update xunit dependencies to latest patch.
2020-09-04 22:00:26 +00:00
Robert Holt 368c8ff3c3 Merged PR 12555: Update .NET version to 5.0.0-preview.8.20407.11
Update .NET version to 5.0.0-preview.8.20407.11
2020-09-03 18:58:21 +00:00
Ilya 81d5a86747
Add support for Tls 1.3 in Web cmdlets (#13409) 2020-09-02 10:18:15 -07:00
xtqqczze 152456d7a0
Add single blank line after copyright header (#13486) 2020-09-02 08:15:16 +05:00
xtqqczze 859890374a
Use read-only auto-implemented properties (#13507)
* Autofix RCS1170: Use read-only auto-implemented property
2020-09-02 08:11:16 +05:00
Robert Holt 6a37eb9313
Update to .NET 5 preview 8 (#13530) 2020-08-31 10:38:05 -07:00
Ilya 3b83a686a1
Add null check for args in CommandLineParser (#13451) 2020-08-28 12:03:30 -07:00
Aditya Patwardhan cb8165eeef
Move PSNullConditionalOperators feature out of experimental (#13529) 2020-08-27 10:11:01 -07:00
Steve Lee 74c743d279
Change PSNativePSPathResolution to not be Experimental (#13522) 2020-08-27 12:08:52 +05:00
Dongbo Wang 6615fa3df6
Fix test hooks for CommandLineParameterParser (#13459) 2020-08-21 11:59:30 -07:00
dependabot-preview[bot] ff2143d07b
Bump Microsoft.NET.Test.Sdk from 16.7.0 to 16.7.1 (#13492)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.7.0 to 16.7.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.7.0...v16.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-21 08:53:58 -07:00
Dongbo Wang 5f9d2846f7
Change Add-Type -OutputType to not support ConsoleApplication and WindowsApplication (#13440) 2020-08-21 11:30:42 +05:00
Dongbo Wang fc4c9cbfd7
Initial work of the subsystem plugin model (for minimal powershell) (#13186) 2020-08-20 17:41:44 -07:00
Steve Lee d67649c300
Fix $? to not be $false when native command writes to stderr (#13395) 2020-08-19 09:31:38 -07:00
Paul Higinbotham ac5f5f9f22
Disable WMF link invocation test (#13479) 2020-08-19 09:05:25 -07:00
James Truher [MSFT] f8b9e8e9db
Create warnings when UTF7 is specified as an encoding (#13430) 2020-08-17 22:19:22 -07:00
aetos ede10850cc
Add -UnixTimeSeconds to Get-Date to allow Unix time input (#13084) 2020-08-12 10:13:59 -07:00
Ilya 68d46c1792
Refactor command line parser to do early parsing (#11482) 2020-08-12 09:58:46 -07:00
Thomas Nieto 46efd38ef5
Fix Get-Help not properly displaying if parameter supports wildcards (#13353) 2020-08-11 10:20:45 -07:00
Steve Lee 511858a267
Make $ErrorActionPreference not affect stderr output of native commands (#13361) 2020-08-07 14:19:17 -07:00
Robert Holt ef7c7d60a6
Revert "Add password confirmation in Get-Credential (#12782)" (#13372)
This reverts commit a6bd47f031.
2020-08-07 12:11:16 +05:00
dependabot-preview[bot] d4e047ce45
Bump PSReadLine from 2.0.2 to 2.0.4 (#13240) 2020-08-06 11:17:30 -07:00
dependabot-preview[bot] 8bbd86ddab
Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0 (#13364) 2020-08-06 10:26:12 -07:00
Christopher Yeleighton 8626937ac4
Change "operable" to "executable" (#13281)
* Change "operable" to "executable" in a resource string
2020-08-06 13:02:43 +05:00
dependabot-preview[bot] 2b4d147be7
Bump xunit.runner.visualstudio from 2.4.2 to 2.4.3 (#13343) 2020-08-05 10:09:48 -07:00
Dongbo Wang 63cf0c330c
Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162)
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.

The changes covers covers Hashtable splatting in 3 scenarios:

- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.

Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
Joel Sallow (/u/ta11ow) 6aa08f9559
Improve BigInteger casting behaviours (#12629) 2020-08-04 10:45:36 +05:00
Shri Ram K S 9ceee3e52f
Fix Get-Acl -LiteralPath "HKLM:Software\Classes\*" behaviour (#13107)
* Fix #11566 bug

Add pester test for Get-Acl cmdlet

* Replace -pending parameter with -skip

* Fix test failing in Linux and MacOS
2020-07-31 16:44:45 -07:00
Dongbo Wang 4464d1b414
Add DefaultVisit method to the visitor interface and class (#13258) 2020-07-31 10:16:59 -07:00
Steve Lee 99b3bfaa34
Change Read-Host -MaskInput to use existing SecureString path, but return as plain text (#13256) 2020-07-30 22:16:37 -07:00
Dongbo Wang 4b9b0788ed
Revert "Use is null syntax (#13277)" (#13322)
This reverts commit 6c03776d74.
2020-07-30 16:06:38 -07:00
xtqqczze 7beec89f50
Add copyright header to .editorconfig and update files (#13306) 2020-07-30 09:47:21 -07:00
xtqqczze 6c03776d74
Use is null syntax (#13277)
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Dongbo Wang 1f904e47d4
Make the failing test pending to unblock PR CIs (#13310)
* Mark Test-Connection tests as pending
2020-07-30 12:48:53 +05:00
xtqqczze 6ca0024db9
Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (#13249)
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
2020-07-23 22:19:15 +05:00
Dongbo Wang f6f966b3dc
Fix Invoke-Command to detect recursive call of the same history entry (#13197) 2020-07-23 09:11:25 -07:00
Shri Ram K S a6bd47f031
Add password confirmation in Get-Credential (#12782)
* Add parameter -ReEnterPassword to prompt user to re-enter the password for confirmation

* Add new public overload function PromptForCredential
2020-07-22 19:13:42 +05:00
github-actions[bot] 9c396aa0ea
Update .NET SDK version from 5.0.100-preview.7.20366.2 to 5.0.100-preview.7.20366.15 (#13200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-07-22 18:53:33 +05:00
Kirk Munro 472943347d
Add -Runspace parameter to all *-PSBreakpoint cmdlets (#10492) 2020-07-21 11:48:54 -07:00