Aditya Patwardhan
f8d6b2f9fe
Update metadata.json in preparation on 7.3.0-preview.1 release ( #16406 )
...
* Update `metadata.json` in preparation on `7.3.0-preview.1` release
* Update PSVersion table and tests
2021-11-09 08:31:01 -08:00
Dongbo Wang
723a50832d
Don't throw exception when trying to resolve a possible link path ( #16310 )
2021-10-30 08:54:23 -07:00
Dongbo Wang
a32700a1c1
Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup ( #15177 )
2021-10-11 14:49:09 -07:00
Dongbo Wang
66b5d50170
Set $? correctly for command expression with redirections ( #16046 )
2021-09-03 15:36:31 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
Steve Lee
a162856af5
Change default to OutputRendering.Host and remove OutputRendering.Automatic ( #15882 )
2021-08-16 14:17:07 -07:00
Dongbo Wang
eeb0407377
Add more tests to validate the current command error handling behaviors ( #15919 )
2021-08-14 14:31:49 -07:00
Dongbo Wang
286f12a37c
Update .NET adapter to handle interface static members properly ( #15908 )
2021-08-14 07:56:14 -07:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
James Truher [MSFT]
ac762c1cce
Add a Windows mode for native commands that allows some commands to use legacy argument passing ( #15408 )
2021-07-20 23:10:04 +00:00
Steve Lee
1df4236e6c
Kill native processes in pipeline when pipeline is disposed on Unix ( #15287 )
2021-04-26 15:10:35 -07:00
James Truher [MSFT] and Ilya
a520e2c982
Native invocation using ArgumentList ( #14692 )
...
Co-authored-by: Ilya <darpa@yandex.ru >
2021-04-01 14:54:10 -07:00
Aditya Patwardhan
a22e7ec2f3
Update README and metadata json for upcoming release ( #14026 )
2020-11-11 12:03:18 -08: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
Steve Lee
74c743d279
Change PSNativePSPathResolution to not be Experimental ( #13522 )
2020-08-27 12:08:52 +05:00
Steve Lee
d67649c300
Fix $? to not be $false when native command writes to stderr ( #13395 )
2020-08-19 09:31:38 -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
xtqqczze
98b95e77ea
Replace Unicode nbsp with space in source ( #12576 )
...
```
-replace [char]0xA0, [char]0x20
```
2020-05-13 08:45:26 +05:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Steve Lee
23b1dd46ae
Support passing PSPath to native commands ( #12386 )
2020-04-27 14:14:57 -07:00
Aditya Patwardhan and Travis Plunk
5b390f1507
Update README.md and metadata.json for 7.1.0-preview.1 ( #12211 )
...
* Update `README.md` and `metadata.json` for `7.1.0-preview.1` release
* Add missing version updates
* fix test failure
* fix test failure
Co-authored-by: Travis Plunk <github@ez13.net >
2020-03-26 12:30:05 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Dongbo Wang
c737f3162c
Fix NullReferenceException when binding common parameters of type 'ActionPreference' ( #12124 )
2020-03-18 23:18:21 +05:00
Dongbo Wang
a4c32bc337
Revert the PRs that made DBNull.Value and NullString.Value treated as $null ( #11648 )
2020-01-29 14:13:05 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
e0d2e2aade
Correct case of $PSHOME special variable
2020-01-13 19:35:33 +00:00
xtqqczze
2782b73e37
Correct case of $PSCulture special variable
2020-01-13 19:35:06 +00:00
xtqqczze
225164037f
Correct case of $PID special variable
2020-01-13 19:34:38 +00:00
xtqqczze
b5326a8488
Correct case of $Host special variable
2020-01-13 19:34:10 +00:00
xtqqczze
d0f28128f5
Correct case of $ExecutionContext special variable
2020-01-13 19:33:14 +00:00
xtqqczze
6014f4bac3
Correct case of $null special variable
2020-01-13 19:24:42 +00:00
xtqqczze
42d50434f8
Correct case of $PSCmdlet special variable
2020-01-13 19:19:12 +00:00
xtqqczze
89e33f5772
Correct case of $Matches special variable
2020-01-13 19:15:17 +00:00
xtqqczze
d58e1ff13b
Correct case of $MyInvocation special variable
2020-01-13 19:04:32 +00:00
xtqqczze
4f5bb46268
Remove BOM, insert newline at EOF
2020-01-13 18:36:47 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Paul Higinbotham
b19e2b9d4c
Various test fixes for debugger and remoting ( #11528 )
2020-01-08 16:23:38 -08:00
Aditya Patwardhan
0097802cee
Normalize line endings before comparing string in tests ( #11499 )
2020-01-08 13:33:28 -08:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
xtqqczze
ee71081432
Use CIM cmdlets instead of WMI cmdlets in tests ( #11423 )
2020-01-03 10:24:06 -08:00
Greg Smulko
f32ae64b8b
Support multi-line code blocks in examples ( #10776 )
2019-11-15 17:24:16 -08:00
Robert Holt
ad12b14517
Stop blindly setting $? to true for ParenExpression, SubExpression and ArrayExpression ( #11040 )
2019-11-15 11:57:45 -08:00
Steve Lee
4ff9924cbf
Add $env:__SuppressAnsiEscapeSequences to control whether to… ( #10814 )
2019-10-24 12:45:26 -07:00
Steve Lee
13f8ba284f
Set the output encoding to [Console]::OutputEncoding for native commands ( #10824 )
2019-10-19 10:09:44 +05:00
Kirk Munro
139cd942b2
Transition ActionPreference.Suspend enumeration value into a non-supported, reserved state, and remove restriction on using ActionPreference.Ignore in preference variables ( #10317 )
2019-09-07 23:45:36 +05:00
Kirk Munro
8b9f4124ce
Add support to ActionPreference.Break to break into debugger ( #8205 )
2019-08-23 10:34:10 -07:00
Kirk Munro
c8e72d1e66
Fix minor breakpoint re-hydration bug ( #10339 )
2019-08-15 14:55:45 -07:00
Kirk Munro
eb81fb749a
Mark -parallel and -throttlelimit reserved for foreach and switch statements ( #10328 )
2019-08-15 14:41:41 -07:00