Kirk Munro
e721f7bbc3
Debug parameter now sets debugpreference to continue ( #8195 )
...
With this commit, users who invoke a command with -Debug will no longer be presented with a prompt asking them if they want to enter a nested prompt, continue execution, or halt execution entirely. Instead, any messages sent to the debug stream will simply be sent to the debug stream and the script will continue execution.
2018-11-30 19:46:51 +05:00
Adam Gauthier
60a4e2f346
Remove workaround for fixed invalid json array deserializing bug ( #8346 )
2018-11-30 16:49:33 +05:00
Mathias R. Jessen
950377faab
Conditionally mark getter/setter implementations virtual in generated classes ( #8303 )
...
When implementing interfaces, PowerShell incorrectly produces non-virtual get/set methods for interface-defined properties.
This commit adds a lookup method for interface-defined properties and marks get/set methods for properties with matching signatures virtual.
2018-11-30 16:48:27 +05:00
PRASOON KARUNAN V
6e523f21eb
Fix for PSDrive creation with a UNC path with a trailing backslash or forward slash when combined with -Persist ( #8305 )
2018-11-30 08:49:22 +05:00
Ilya
4e58ee6426
Cleanup '#if !CORECLR' code ( #8337 )
...
* NewWinEventCommand.cs
* CredSSP.cs
* WsManHelper.cs
* debugger.cs
* InternalHost.cs
* InitialSessionState.cs
* BaseTransportManager.cs
* Types_Ps1Xml.cs
* FileSystemProvider.cs
* Restore XmlResolver = null
2018-11-30 08:11:20 +05:00
Ilya
6dcd3ad000
Cleanup updatablehelpsystem and enable XSD validation on MAML help content ( #8335 )
2018-11-29 10:13:19 -08:00
Luke Jeremy
0cc1f06be4
Remove Persist parameter from New-PSDrive on non-Windows platform ( #8291 )
2018-11-29 19:02:08 +05:00
dependabot[bot]
de5f69cf94
Bump Newtonsoft.Json from 11.0.2 to 12.0.1 ( #8348 )
2018-11-28 10:56:00 -08:00
Ilya
9381d03a7b
Fix race condition to access powershell.config.json ( #8249 )
2018-11-28 10:09:56 -08:00
Paul Higinbotham
06571637e4
Add SkipCA and SkipCN check requirement to WinRM/OMI HTTPS connection ( #8279 )
2018-11-27 16:16:00 -08:00
Meir Blachman
58bbfe8396
Fix GetLocationCommand output type parameter set and style issues ( #8324 )
2018-11-27 08:59:34 +05:00
Paul Higinbotham
6a388f0b7d
Add fix for Start-Job initialization script should not be executed as trusted in system lockdown ( #8284 )
2018-11-26 10:38:13 -08:00
Ilya
e2b5aaca20
Remove old 'customPSSnapInType' parameter from PSSnapInInfo() ( #8333 )
2018-11-26 11:21:46 +05:00
Ilya
9953ccb765
Cleanup '#if CORECLR' from some files ( #8332 )
...
* CommonUtilities
* CredSSP
* WsManHelper.cs
* InternalHost
2018-11-26 10:08:10 +05:00
dependabot[bot]
cae5f4a18e
Bump NJsonSchema from 9.12.3 to 9.12.5 ( #8328 )
2018-11-21 11:45:15 -08:00
Joel Sallow (/u/ta11ow)
775552c0f5
Test-Path: Return $false when given an empty or $null -Path/-LiteralPath value ( #8080 )
2018-11-21 10:08:31 +05:00
dependabot[bot]
7193763467
Bump Microsoft.CodeAnalysis.CSharp from 2.9.0 to 2.10.0 ( #8294 )
2018-11-20 16:49:37 -08:00
dependabot[bot]
8563f9917e
Bump PowerShellGet from 2.0.1 to 2.0.3 in /src/Modules ( #8321 )
2018-11-20 12:28:36 -08:00
dependabot[bot]
d8d0705a4d
Bump PackageManagement from 1.2.2 to 1.2.3 in /src/Modules ( #8320 )
2018-11-20 11:21:30 -08:00
dependabot[bot]
e9925ef1cd
Bump NJsonSchema from 9.12.2 to 9.12.3 ( #8319 )
2018-11-20 11:20:52 -08:00
Hubert Bukowski
a8627b83e5
Token calculation fix for Get-Help executed on ScriptBlock for comment help. ( #8238 )
2018-11-20 11:11:17 -08:00
Steve Lee
b7daa796a3
Enable Open Here context menu on Windows to work with root of a drive ( #8287 )
...
support being started by Windows Shell (Open Here) where a trailing slash followed by a quote is handled incorrectly
2018-11-19 11:12:40 -08:00
dependabot[bot]
dedddb6b59
Bump System.Data.SqlClient from 4.5.1 to 4.6.0 ( #8266 )
...
Bumps System.Data.SqlClient from 4.5.1 to 4.6.0.
2018-11-16 10:32:15 -08:00
Ilya
2c3e93512d
Cleanup assemblyinfo ( #8190 )
...
Remove old code from AssemblyInfo.cs
2018-11-16 10:20:12 -08:00
Aditya Patwardhan
82091d6a45
Merge release-v6.2.0-preview.2 to master
...
Merge Release-v6.2.0-preview.2
2018-11-15 17:59:42 -08:00
Steve Lee
c5dd3bd2c9
Support 'Get-PSHostProcessInfo' and 'Enter-PSHostProcess' on Unix platforms ( #8232 )
...
There a some differences in support of named pipes for Windows and non-Windows. Named pipes on Unix have a 104 character path limit. On macOS, the `$env:TMPDIR` (on my system) is already 49 characters; corefx adds 12 more. Since AppDomainName isn't really used, changed it from `DefaultAppDomain` to `None` to shorten the name. Need to keep it since Windows PowerShell expects it. Changed `starttime` part of pipe name to 8 hex characters which is to provide uniqueness to the pipe name.
2018-11-15 12:50:04 -08:00
Staffan Gustafsson
877b9a9fbf
Add cmdlet 'Join-String' for creating text from pipeline input ( #7660 )
...
The cmdlet syntax is as follows:
```
Join-String [[-Property] <pspropertyexpression>] [[-Separator] <string>] [-OutputPrefix <string>] [-OutputSuffix <string>] [-UseCulture] [-InputObject <psobject>] [<CommonParameters>]
Join-String [[-Property] <pspropertyexpression>] [[-Separator] <string>] [-OutputPrefix <string>] [-OutputSuffix <string>] [-SingleQuote] [-UseCulture] [-InputObject <psobject>] [<CommonParameters>]
Join-String [[-Property] <pspropertyexpression>] [[-Separator] <string>] [-OutputPrefix <string>] [-OutputSuffix <string>] [-DoubleQuote] [-UseCulture] [-InputObject <psobject>] [<CommonParameters>]
Join-String [[-Property] <pspropertyexpression>] [[-Separator] <string>] [-OutputPrefix <string>] [-OutputSuffix <string>] [-FormatString <string>] [-UseCulture] [-InputObject <psobject>] [<CommonParameters>]
```
2018-11-14 13:52:44 -08:00
Steve Lee
43e0394d51
Remove extra newlines from formatting which resulted in necessary double newlines ( #8247 )
2018-11-14 08:28:05 +05:00
Aditya Patwardhan
20497d19c2
Merged PR 5822: Update version for dependencies
...
Update version for dependencies
2018-11-14 01:56:28 +00:00
Travis Plunk
79f21b41de
Consolidation of all Windows PowerShell work ported to PSCore6 ( #8257 )
...
Consolidation of all Windows PowerShell work ported to PSCore6
* Added ps1 file import restriction. Refactored InvokeLanguageModeTestingSupportCmdlet to HelpersSecurity module
* JEA loop back fix. Debugger running commands in CL mode.
* Support for new AMSI codes. Changed to use AMSI buffer API. Unhandled exception fix.
* Fixes for module bugs while running in ConstrainedLanguage mode
* Untrusted input tracking work
* Configuration keyword bug fix, PSRP protocol version check for reconstruct reconnect, Sharing InitialSessionState in runspace pool.
* Restricted remote session in UMCI, Applocker detection collision, Help command exposing functions, Null reference exception fix.
* Added mitigation for debugger function exposure
2018-11-13 16:16:29 -08:00
Robert Holt
aa76c6846d
Fix incorrect name check when autoloading required modules ( #8218 )
2018-11-13 14:56:07 -08:00
Travis Plunk
18a181fc30
Fix CVE-2018-8415 ( #8253 )
...
If there is a null character in a scriptblock, translate it to a null replacement character before logging with scriptblock logging.
2018-11-13 11:30:48 -08:00
Travis Plunk
b39a41109d
Fix CVE-2018-8256 ( #8252 )
...
* Use ZipFile and ExtractToDirectory APIs to extract zip file
* Update Microsoft.PowerShell.Archive version
2018-11-13 11:30:03 -08:00
Steve Lee
8eebc2699c
Make each installation of pwsh has its own 'ModuleAnalysisCache' file ( #8174 )
2018-11-13 11:08:05 -08:00
dependabot[bot]
3cc10271c7
Bump NJsonSchema from 9.12.0 to 9.12.1 ( #8248 )
...
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema ) from 9.12.0 to 9.12.1.
2018-11-13 10:29:52 -08:00
Travis Plunk
db60f0614a
Revert "Ignoring backspace for empty lines on stdin/stdout mode ( #8196 )" ( #8239 )
...
This reverts commit b525b1f0bd .
2018-11-12 13:14:04 -08:00
bugale
b525b1f0bd
Ignoring backspace for empty lines on stdin/stdout mode ( #8196 )
2018-11-10 18:55:28 +05:00
kwkam
caad7ed471
Fix Rename-Item -Path with wildcard char ( #7398 )
2018-11-09 11:08:26 -08:00
John Eismeier
4118fd2829
Propose fix some typos ( #8206 )
2018-11-09 08:33:24 +05:00
Paal Braathen
2e89efa1bc
When using Start-Transcript and file exists, empty file rather than deleting ( #8131 )
2018-11-07 08:34:42 +05:00
Steve Lee
7b243d59da
Remove ShouldProcess from Format-Hex ( #8178 )
2018-11-06 11:31:43 +05:00
Paul Higinbotham
acf5eb5053
Adding verbose output for experimental implicit remoting batching feature ( #8166 )
2018-11-05 15:22:46 -08:00
Aditya Patwardhan
b5ab2ddd40
Load assembly from module base path before trying to load from GAC ( #8073 )
...
[Breaking Change]
When a binary module has the module assembly in GAC, we load the assembly from GAC before trying to load it from module base path.
This change attempts to load it from module base path before looking up in GAC.
2018-11-05 10:41:53 -08:00
dependabot[bot]
d165f5dcbf
Bump NJsonSchema from 9.11.1 to 9.12.0 ( #8183 )
...
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema ) from 9.11.1 to 9.12.0.
2018-11-05 10:22:31 -08:00
Robert Holt
5d06fba366
Refactor module version/GUID comparison logic ( #7125 )
2018-11-01 13:41:51 -07: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
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
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