Tamás Vajk
0f02fd7f1d
Fix erroneous assert ( #13495 )
2020-09-01 09:47:26 +05:00
xtqqczze
8f37cced70
Cleanup: remove duplicate words in comments ( #13539 )
2020-08-31 11:39:00 -07:00
Robert Holt
6a37eb9313
Update to .NET 5 preview 8 ( #13530 )
2020-08-31 10:38:05 -07:00
xtqqczze
83079f6397
Reformat StringUtil ( #13509 )
2020-08-29 11:21:28 +05:00
Ilya
3b83a686a1
Add null check for args in CommandLineParser ( #13451 )
2020-08-28 12:03:30 -07:00
Ilya
4e2b6e9540
Process reparse points for Microsoft Store applications ( #13481 )
2020-08-27 11:51:19 -07:00
xtqqczze
78d0d0e306
Use uint
instead of long
for PDH
constants ( #13502 )
2020-08-27 10:27:24 -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
The Dumb
126d94218a
Use field if property does not exist for ObRoot
( #13375 )
2020-08-25 14:35:43 -07:00
xtqqczze
16f0b74187
Cleanup: Remove redundant empty lines ( #13404 )
2020-08-25 11:29:26 -07:00
xtqqczze
3594ac60c7
Add StringUtil.Format overload to avoid unnecessary allocations ( #13408 )
...
* Rename parameters to correspond to string.Format
* Add addtional overload to avoid allocations at call sites
2020-08-24 09:10:54 +05:00
Dongbo Wang
6615fa3df6
Fix test hooks for CommandLineParameterParser
( #13459 )
2020-08-21 11:59:30 -07:00
Robert Holt
213e5b7857
Suppress UTF-7
obsolete warnings ( #13484 )
2020-08-21 10:37:42 -07:00
Dongbo Wang
44bb5861cb
Avoid multiple enumerations of an IEnumerable<Expression>
instance in Compiler.cs
( #13491 )
2020-08-21 10:28:16 -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
Dongbo Wang
98dbaefcd6
Optimize 'GetSystemLockdownPolicy' for non-lockdown scenarios ( #13438 )
2020-08-19 10:48:14 -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
xtqqczze
1a0a5db069
Remove redundant delegate creation ( #13441 )
2020-08-19 09:15:07 -07:00
dependabot-preview[bot]
904e551178
Bump Markdig.Signed from 0.20.0 to 0.21.1 ( #13463 )
...
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig ) from 0.20.0 to 0.21.1.
- [Release notes](https://github.com/lunet-io/markdig/releases )
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md )
- [Commits](https://github.com/lunet-io/markdig/compare/0.20.0...0.21.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-18 10:22:42 +05:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -07:00
Dongbo Wang
d9c2e0e712
Make the parameter 'args' non-nullable in the public ConsoleHost
APIs ( #13429 )
2020-08-13 17:06:03 -07:00
Youssef Victor
112f1b97a3
Add missing dispose for CancellationTokenSource ( #13420 )
2020-08-13 14:37:47 -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
Aditya Patwardhan
485ec44005
Add the parameter -Paged
to Get-Help
to support paging ( #13374 )
2020-08-11 15:51:00 -07:00
Thomas Nieto
46efd38ef5
Fix Get-Help
not properly displaying if parameter supports wildcards ( #13353 )
2020-08-11 10:20:45 -07:00
xtqqczze
d8f8f0a8bc
Fix comparison of value type object to null ( #13285 )
2020-08-10 14:56:14 -07:00
Christopher Yeleighton
16425645ab
Improve inline documentation for VerbInfo ( #13265 )
2020-08-10 14:43:33 -07:00
xtqqczze
dd85bd1178
Use 'is' operator instead of 'as' operator ( #13287 )
2020-08-10 09:07:31 +05:00
Dongbo Wang
4214800690
Refresh and enable the ComInterop
code in PowerShell ( #13304 )
2020-08-07 16:24:10 -07:00
Steve Lee
511858a267
Make $ErrorActionPreference
not affect stderr
output of native commands ( #13361 )
2020-08-07 14:19:17 -07:00
Sergey Vasin
fe2019b054
Update pwsh help for -InputFormat parameter ( #13355 )
2020-08-07 12:16:02 +05: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
xtqqczze
87b2581dd2
Change SwitchParameters from fields to properties ( #13291 )
2020-08-06 15:29:17 -07: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]
ea966b495e
Bump Microsoft.CodeAnalysis.CSharp
from 3.6.0 to 3.7.0 ( #13360 )
2020-08-06 10:27:10 -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
Thomas Nieto
bedd3bc287
Remove AssemblyInfo
property from list views ( #13331 )
2020-08-05 12:17:09 -07:00
xtqqczze
aa43d867af
Switch to MIT license for files copied from Roslyn ( #13305 )
2020-08-05 10:51:57 -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
Christopher Yeleighton
7ed43d9c16
HelpSystem: Improve the wording of inline comments ( #13274 )
2020-08-04 15:11:10 -07: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
xtqqczze
4597b41396
Use is not
syntax where appropriate and remove unnecessary parentheses ( #13323 )
2020-07-31 16:41:59 -07:00
Dongbo Wang
4464d1b414
Add DefaultVisit
method to the visitor interface and class ( #13258 )
2020-07-31 10:16:59 -07:00
Ilya
58b91a89b6
Fix conflicting shorthand switch -s
(sta) for pwsh ( #13262 )
2020-07-31 09:40:42 -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
xtqqczze
2eade89f25
Remove unreachable code in CustomShellCommands.cs ( #13316 )
2020-07-30 17:59:11 -07:00