Commit Graph
6546 Commits
Author SHA1 Message Date
Steve Lee aa6f052d71 Update license.rtf to only have major version (#8127)
Guidance is that we can just have the major version at the top "PowerShell 6" and not worry about updating the minor version with each release.  The change is on line 230.  Word made the other changes to the RTF.
2018-10-29 15:30:04 -07:00
lassehastrup 7076d80631 Added updated photo of VScode due to new version of VScode (#8084) 2018-10-29 15:07:42 -07:00
Aditya Patwardhan d7c7fa504f Filter the TestPackage artifact upload by name to avoid other zip files being uploaded (#8116) 2018-10-29 14:13:05 -07:00
Steve Lee b1e2745b53 move processing of -WorkingDirectory before processing of profiles (#8079) 2018-10-29 13:56:13 -07:00
dependabot[bot] b3f315eb15 Bump xunit from 2.4.0 to 2.4.1 (#8140) 2018-10-29 13:28:02 -07:00
dependabot[bot] cbfe2c8fe8 Bump xunit.runner.visualstudio from 2.4.0 to 2.4.1 (#8139) 2018-10-29 13:27:25 -07:00
Steve Lee b27380dc51 Enable case-insensitive tab completion for files and folders on case-sensitive filesystem (#8128) 2018-10-28 09:48:49 +05:00
Mike Cochran 81618bc2c1 Add Microsoft Docs link to FAQ (#8133)
Linked to the Microsoft Docs for PowerShell as a reference on where to learn PowerShell's syntax.
2018-10-28 09:44:47 +05:00
Andre van den Berg 4f134fc197 Update powershell-beginners-guide.md to add alias for Clear-Host (#7912) 2018-10-26 09:29:24 -07:00
Ilya 0e19042848 Reduce allocations in Get-Content cmdlet (#8103)
* Simplify main loop in ReadDelimited() by bringing out raw stream code
* Remove unused constructor
* Allocate buffer for current line once in constructor
* Use Span buffer to significantly reduce allocations
* Optimize Boyer-Moore. Use simple mapping Unicode chars to byte. It works well for common text files with chars from one-two languages.
2018-10-26 08:55:54 +05:00
Darwin ddaad12183 Update installpsh amazonlinux for container build (#7907) 2018-10-24 10:10:32 -07:00
Steve Lee 9141b11c5e Enable Set-Location -LiteralPath to work with folders named "-" and "+" (#8089) 2018-10-24 09:37:59 +05:00
Staffan Gustafsson 3e4fa87901 Add a path for checking ZoneInformation without throwing an exception (#8025) 2018-10-24 09:34:15 +05:00
Aditya Patwardhan 05e9f78bcb Publish test package at AGENT_WORKFOLDER if TEMP is not available (#8108) 2018-10-23 16:31:04 -07:00
Steve Lee 082c3b0bae Enable Add-Content to share read access to other tools while writing content (#8091) 2018-10-23 16:27:53 -07:00
Andrew Stanton bf2667352a Fix typo in -icontains description from"incase sensitive" to "case insensitive" (#7840) 2018-10-23 13:32:51 -07:00
tobvil 903c61a62b Added 'Learn Windows PowerShell in a Month of Lunches' as recommended reading (#8067) 2018-10-23 11:34:06 -07:00
dependabot[bot] 3c4d64c3e9 Bump Microsoft.ApplicationInsights from 2.8.0 to 2.8.1 (#8104) 2018-10-23 11:31:08 -07:00
Patrick Meinecke 57bf508fec Fix static method invocation type inference (#8018)
Fixes type inference for static method invocations (e.g. [powershell]::Create()).
2018-10-23 16:58:31 +05:00
Ilya 0a4f33a872 Replace StringComparision.CurrentCulture with StringComparision.Ordinal (#8068) 2018-10-21 16:11:08 +05:00
Steve Lee ef504e5212 Fix psmodulerestore path when built in VSCode (#8075) 2018-10-20 11:38:15 -07:00
Jan 734a139457 Correct typos in powershell-beginners-guide.md (#8088) 2018-10-20 22:01:22 +05:00
Aditya Patwardhan 487073e57b Add functionality to create a test package (#8087) 2018-10-19 14:56:58 -07:00
Steve Lee 3ceb1c17ef Fix logic to not rely on build number to determine whether to output formatdata (#8063) 2018-10-19 12:45:03 -07:00
Ilya 0bce3e0e0d Style fixes in Format-Hex (#8083) 2018-10-19 19:16:13 +05:00
José Carlos Peñuelas Armenta 1dc4a7903f Combine notes about ITuple changes in Change Log (#8077) 2018-10-18 17:34:19 -07:00
Travis Plunk 10266af610 Update the codeowners (#8017) 2018-10-18 15:47:03 -07:00
Andrew d098e6fd02 Adding fxdependent PS package tests (#7830) 2018-10-18 15:28:43 -07:00
Steve Lee 2f1863a222 Update license RTF to 6.2 (#8065) 2018-10-18 14:30:51 -07:00
Steve Lee 4e5e3900f6 Allow dynamic parameter to be returned even if path matches nothing (#7957) 2018-10-18 11:44:08 -07:00
Ilya f1e2136a2b Add -Name, -NoUserOverrides and -ListAvailable parameters to Get-Culture cmdlet (#7702)
Add new parameters in Get-Culture cmdlet:
-Name - to allow retrieving a specific culture
-NoUserOverrides - ignore user changes for current culture
-ListAvalable - to allow retrieving all cultures supported on the platform
2018-10-18 17:34:34 +05:00
Aditya Patwardhan 50f239e1cb Fix spellings in CHANGELOG.md (#8062) 2018-10-18 10:20:16 +05:00
Ilya 745e305ac5 Add new Offset and Count parameters to Format-Hex and refactor the cmdlet (#7877)
- Add new Offset and Count parameters.
- Modify ByteCollection class to support offsets up to UInt64.MaxValue size.
- Hide/obsolete Raw parameter because the behavior is by default.
- Optimize conversion to bytes to reduce allocations for large input data.
2018-10-18 10:03:59 +05:00
Staffan Gustafsson 9c4340ab25 Make Select-String faster by not doing extra work (#7673)
By not tracking context in the common case where Context size is 0 (using new NoContextTracker class), and by not checking if the full name of a FileInfo is a Directory, about 30% of the execution time is cut when piping files into Select-String.
2018-10-18 09:46:07 +05:00
Joel Sallow 33f2f0faaf Add Type Inference for $_ / $PSItem in catch{ } blocks (#8020) 2018-10-18 09:42:16 +05:00
Travis Plunk 64c1ca8926 Merge release-v6.2.0-preview.1
Release v6.2.0 preview.1
2018-10-17 17:17:07 -07:00
Travis Plunk 6e8ac22db9 Merged PR 5380: 6.2.0-preview.1 changelog draft
6.2.0-preview.1 changelog
v6.2.0-preview.1
2018-10-17 19:17:37 +00:00
daviddreher2 f8782d197e Update README.md (#8059)
Fixed some spelling and grammar.
2018-10-17 16:22:55 +05:00
Aditya Patwardhan d99afc46df Merged PR 5382: Add missing dependency
Add missing dependency
2018-10-16 21:28:42 +00:00
Aditya Patwardhan eb84c3d928 Merged PR 5379: Improve debugging of nuget package generation and add type to filtering 2018-10-16 20:23:57 +00:00
Aditya Patwardhan 1e31e707c8 Merged PR 5363: Version and doc changes
Version and doc changes
2018-10-15 20:24:00 +00:00
dependabot[bot] e5a4177736 Bump PackageManagement from 1.2.1 to 1.2.2 in /src/Modules (#8029) 2018-10-15 12:34:52 -07:00
Steve Lee 81b67c924a Add prompt to the use of less in the function 'help' to instruct user how to quit (#7998) 2018-10-12 15:37:16 -07:00
James Truher [MSFT] ddaffe23c6 Update Pester to use latest version (#8015) 2018-10-12 15:31:33 -07:00
dependabot[bot] 9f736b98ed Bump PackageManagement from 1.1.7.2 to 1.2.1 in /src/Modules (#8014) 2018-10-12 15:28:06 -07:00
Steve Lee 8bca5a6017 Allow root node of format.ps1xml to have attributes that are ignored (#7987) 2018-10-12 11:31:21 -07:00
Steve Lee b62e152f4d Improve error message on non-Windows when importing clixml with securestring (#7997) 2018-10-12 10:56:35 -07:00
Dongbo Wang 9b94f18ccf Fix BeginInvoke/EndInvoke to return results when Stop or BeginStop/EndStop was called previously (#7917)
The root cause is that `OutputBuffer` is not cleaned up (set to `null`) in `Stop` and `BeginStop/EndStop` when the powershell instance owns the `OutputBuffer` object. Since the pipeline has been intentionally stopped by the caller, the `OutputBuffer` should be set to `null` as well when it's owned by the PowerShell instance, just like how it's cleaned up in `EndInvoke`.
2018-10-12 10:46:57 -07:00
Aditya Patwardhan 5fcab21111 Remove PDBs from fxdependent pacakge (#8006) 2018-10-11 18:08:28 -07:00
Steve Lee 5b4e9a9881 Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows (#8003) 2018-10-11 15:52:12 -07:00