Commit graph

6558 commits

Author SHA1 Message Date
RDIL 892262fa6d Promote https (#8160)
* Promote https in extensions.json
* Promote https in code-of-conduct
2018-11-01 11:55:53 +05:00
PRASOON KARUNAN V f59353d5d9 Error message enhancement for clear-content cmdlet when targeting a directory (#8134) 2018-11-01 08:56:45 +05:00
PRASOON KARUNAN V 35f1ed0011 Use approved verb instead of Generate-CrossGenAssembly (#8151) 2018-10-31 15:45:33 +05:00
Steve Lee 1eec123f48 Create $PROFILE if it does not exist for -WorkingDirectory processing test (#8152) 2018-10-30 22:06:19 -07:00
Kirk Munro d9803b24d8 Make PSVersionInfo.PSVersion and PSVersionInfo.PSEdition public (#8054) 2018-10-31 09:09:53 +05:00
Ilya ecb467c791
Use DefaultPathSeparator char instead of DefaultPathSeparatorString (#8082)
In:
* SessionStateLocationAPIs
* FileSystemProvider
* LocationGlobber
* NavigationProviderBase
2018-10-31 08:26:15 +05:00
Azkar Moulana 66a4ab10a9 Remove duplicate parts from license file (#8143)
All rights reserved had been duplicated in the license file and removed duplicating one necessarily
2018-10-30 17:20:55 -07:00
Paul Higinbotham 20f3a6a337 Experimental feature: Implicit remoting batching perf improvement (#8038) 2018-10-30 09:55:39 -07:00
Steve Lee 1aa5bb3576 Honor -OutputFormat if specified in noninteractive, redirected, encoded command used with pwsh (#8115)
[Breaking Change]

There is specific code that sets the `OutputFormat` to xml if pwsh is run non-interactive, with redirected output, and the command was encoded.  However, it ignored whether OutputFormat was specified.  Fix is to track whether `-OutputFormat` was used and respect that value rather than defaulting to xml.

Fix https://github.com/PowerShell/PowerShell/issues/5912
2018-10-29 17:51:21 -07:00
Mark Wragg 8215914b46 Updated Pester Syntax in Writing Tests Guide (#8039)
- Modified the Pester syntax for the `-Be` assertion (instead of just `Be`) to reflect the preferred use per latest version of Pester.
- Added an example showing use of `-BeOfType` to test the type of a variable.
- Other minor changes for grammar.
2018-10-29 17:49:12 -07:00
kwkam a4d4c31390 build: fix Start-PSBuild -Output (#7504)
Make Start-PSBuild -Output $OutDir output the build to the directory properly.
2018-10-29 17:43:41 -07:00
Ilya c36e4ad983 Cleanup: Remove clone of command-line args array (#7910) 2018-10-29 15:32:50 -07:00
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
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