Commit graph

8118 commits

Author SHA1 Message Date
Paul Higinbotham 9a92c62d30
Add null check for Windows PowerShell install path (#12296)
Some Azure images have run into this problem where Start-Job fails even when running in pwsh child process rather than Windows PowerShell child. Fix is to guard against the missing registry entry.
2020-04-14 11:05:26 +05:00
Chris Gardner 8869e7a4cd
Specifying an alias and -Syntax to Get-Command returns the aliased commands syntax (#10784)
@ChrisLGardner Thank you for your contribution and your patience.
2020-04-13 11:01:08 -07:00
Ilya b1e998046e
Fix NRE in csv commands (#12281) 2020-04-08 16:28:54 -07:00
Christoph Bergmeister [MVP] 622eb4cf02
Upgrade to .NET 5 Preview 2 (#12250) 2020-04-07 17:39:51 -07:00
Michael Klement 5f28df120a
In local invocations do not require -PowerShellVersion 5.1 for Get-FormatData in order to see all format data. (#11270) 2020-04-07 17:37:13 -07:00
Dongbo Wang eb3e4a8781
Fix the Sync PSGalleryModules to Artifacts build (#12277)
Merging this to unblock daily build
2020-04-07 17:26:41 -07:00
Bryan Berns 5f89a10f5b
Added Support For Big Endian UTF-32 (#11947) 2020-04-07 14:33:15 -07:00
Paul Higinbotham 7837a536eb
Fix possible race that leaks PowerShell object dispose in ForEach-Object -Parallel (#12227) 2020-04-07 14:31:04 -07:00
Jack Casey 46071b7ff9
Add -FromUnixTime to Get-Date to allow Unix time input (#12179) 2020-04-07 13:25:03 -07:00
Paramesh Babu 3f717c5491
Add Windows 10 IoT Core reference in Adopters.md (#12266) 2020-04-06 21:42:07 -07:00
Keith Hill 8d711542e0
Change progress fg & bg colors to provide better contrast (#11455) 2020-04-03 09:13:41 +05:00
dependabot-preview[bot] 6b5d6a0075
Bump PSReadLine from 2.0.0 to 2.0.1 (#12243) 2020-04-01 16:22:37 -07:00
dependabot-preview[bot] 41fef6c4f7
Bump NJsonSchema from 10.1.11 to 10.1.12 (#12230)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.11 to 10.1.12.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-01 12:08:55 -07:00
Paul Higinbotham a4c996d425
Fix foreach parallel when current drive is not available (#12197) 2020-03-31 20:33:06 +05:00
Dongbo Wang c0c17ded03
Do not wrap return result to PSObject when converting ScriptBlock to delegate (#10619)
This is a breaking change for the delegate types with the object return type:

Before this change, the returned object will always be an PSObject instance.
After this change, the returned object is the underlying object, which could still be an PSObject if that's what the script actually returns.
2020-03-30 21:46:12 +05:00
Dongbo Wang e741dc58dd
Discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile' (#12203)
* Fix regression: pwsh should discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile'
2020-03-28 20:25:59 +05:00
Joel Sallow (/u/ta11ow) dfe9955346
Don't write DNS resolution errors on Test-Connection -Quiet (#12204) 2020-03-28 15:50:32 +05:00
Dongbo Wang 1ec7c826f0
Use dedicated threads to read the redirected output and error streams from the child process for out-of-proc jobs (#11713) 2020-03-28 15:44:23 +05:00
Aditya Patwardhan 515511094d
Update change log generation script to support collapsible sections (#12214) 2020-03-27 17:40:12 -07:00
Aditya Patwardhan 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
Travis Plunk 5e86cba674 Merge branch 'release/v7.1.0-preview.1' into master 2020-03-26 11:26:14 -07:00
Next Turn 175efca71f
Fix Service.cs to not modify collection while enumerating it (#11851) 2020-03-26 11:17:58 -07:00
Aditya Patwardhan 2367ea19f0 Merged PR 11200: Update change log for 7.1.0-preview.1 release
Update change log for 7.1.0-preview.1 release
2020-03-26 16:56:23 +00:00
Paul Higinbotham 668d72c4af
Clean up the IPC named pipe on PowerShell exit (#12187) 2020-03-26 09:47:33 -07:00
Shayde Nofziger 238cb5c8dc
Fix erroneous comment in tokenizer.cs (#12206)
The BigInteger NumberSuffixFlags enum is 'N', not 'I'. Fix the comment to indicate it as such.
2020-03-26 13:18:33 +05:00
Aditya Patwardhan 7193800bc2
Allow case insensitive paths for determining PSModulePath (#12192)
* Allow case insensitive comparison of paths for determining PSModulePath

* Address codefactor issue
2020-03-25 12:11:06 -07:00
Steve Lee f23be437af
Fix terms checker issues (#12189) 2020-03-24 11:38:45 -07:00
Steve Lee b7cb335f03
Update copyright notice to latest guidance (#12190) 2020-03-24 11:08:37 -07:00
Joel Sallow (/u/ta11ow) f8fb77052f
Fix <img /> detection regex in web cmdlets (#12099) 2020-03-24 10:51:55 -07:00
Aditya Patwardhan 3c81de6d26
Add PowerShell version 7.0 to compatible version list (#12184) 2020-03-24 10:49:54 -07:00
Kevin Locke 68442a33e5
Add documentation for WebResponseObject and BasicHtmlWebResponseObject properties (#11876) 2020-03-23 15:13:47 -07:00
Paul Higinbotham cce214e884
Implement ForEach-Object -Parallel runspace reuse (#12122)
* Implement foreach parallel runspace reuse

* Change runspace dispose

* Refactor runspace reset check

* Fix race condition.

* Fix CodFactor issues

* Implement -UseNewRunspace parameter switch, add tests

* Fix Codacy error
2020-03-23 14:00:43 -07:00
Travis Plunk 7a8094fd31
Put symbols in separate package (#12169) 2020-03-21 12:36:10 -07:00
Travis Plunk 5309774403
Disable x86 pdb generation (#12167) 2020-03-20 13:54:39 -07:00
dependabot-preview[bot] 78d7a90bdd
Bump NJsonSchema from 10.1.8 to 10.1.11 (#12166)
Bumps [NJsonSchema](https://github.com/RicoSuter/NJsonSchema) from 10.1.8 to 10.1.11.
- [Release notes](https://github.com/RicoSuter/NJsonSchema/releases)
- [Commits](https://github.com/RicoSuter/NJsonSchema/commits)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-20 12:22:46 -07:00
Travis Plunk 3ab605aeec
Create crossgen symbols for Windows x64 and x86 (#12157) 2020-03-19 17:24:27 -07:00
Steve Lee 495dea0783
Move to .NET 5 preview.1 (#12140) 2020-03-19 11:27:13 -07:00
Damir Ainullin 5da06978b1
Set correct priority for ?: operator (#12075) 2020-03-19 08:54:39 +05:00
Dongbo Wang c737f3162c
Fix NullReferenceException when binding common parameters of type 'ActionPreference' (#12124) 2020-03-18 23:18:21 +05:00
Ilya 43e0e1a1c5
Fix default formatting for deserialized MatchInfo (#11728)
MatchInfo class has ToEmphasizedString() member method to color output line.
In remote scenario MatchInfo class is deserialized as Deserialized.Microsoft.PowerShell.Commands.MatchInfo without the method. As result default formating in remote scenario show nothing.

The fix is to directly output Line property.
2020-03-18 18:43:01 +05:00
Ilya 8ebff6a2a4
Use async streams in Invoke-RestMethod (#11095) 2020-03-18 18:40:35 +05:00
Ilya b5d4739b2a
Use span-based overloads (#11884) 2020-03-18 18:38:55 +05:00
dependabot-preview[bot] 320656c8de
Bump Microsoft.CodeAnalysis.CSharp from 3.4.0 to 3.5.0 (#12136)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/master/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 13:22:56 -07:00
Bryan Berns 07962a9749
Address UTF-8 Detection In Get-Content -Tail (#11899)
- Addresses a comparison failure that causes UTF-8 detection to fail which in turn causes Get-Content -Tail to resort to forward lookups given encoding type cannot be detected. Possible this misdetection is due to the incoming encoding object as being of type System.Text.UTF8Encoding where as the comparison uses the object Encoding.UTF8 which is derived from System.Text.UTF8Encoding+UTF8EncodingSealed.
- See https://github.com/PowerShell/PowerShell/issues/11830

- Added 'OEM', 'UTF8BOM', and 'UTF8NoBOM' as explicit encodings for existing Get-Content -Tail tests.

* Add Multi-Byte Unicode Tail Character Tests

- Modified -Tail encoding test to use three different test sets: utf-8, utf-16, utf-32.  The test verifies that the content resulting from -Tail is equal to the same string returned from a regular Get-Content using both an explicit and implicit encoding.

* Remove BigEndianUnicode Reference In Comment
2020-03-14 09:57:04 +05:00
Steven Donovan 47645e0ccf
Replace VSCode link in CONTRIBUTING.md (#11475) 2020-03-13 15:44:15 -07:00
Ilya 10e7d1955b
Handle the IOException in Get-FileHash (#11944) 2020-03-13 09:10:19 -07:00
Travis Plunk 9d592ea388
Move to standard internal pool for building (#12119) 2020-03-13 09:00:18 -07:00
Travis Plunk f0a8220398
Fix package syncing to private Module Feed (#11841) 2020-03-13 17:54:27 +05:00
Ilya 2e8ced4856
Use new string.Split() overloads (#11867) 2020-03-13 17:46:05 +05:00
Steve Lee e9152a59a5
Remove the version number of PowerShell from LICENSE (#12019) 2020-03-12 22:13:34 -07:00