Steve Lee
23b1dd46ae
Support passing PSPath to native commands ( #12386 )
2020-04-27 14:14:57 -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
Steve Lee
495dea0783
Move to .NET 5 preview.1 ( #12140 )
2020-03-19 11:27:13 -07:00
Steve Lee
e9152a59a5
Remove the version number of PowerShell from LICENSE ( #12019 )
2020-03-12 22:13:34 -07:00
Steve Lee
2db8516a8c
Fix ConciseView to not show the line information within the error messages ( #11952 )
2020-02-26 21:07:57 +05:00
Steve Lee
a09855017f
Generate guid for FormatViewDefinition InstanceId if not provided ( #11896 )
2020-02-20 19:57:26 +05:00
Steve Lee
34f9b43514
Fix ConciseView where error message is wider than window width and doesn't have whitespace ( #11880 )
2020-02-20 08:38:28 +05:00
Steve Lee
5edafb6afd
Fix ConciseView to handle case where there isn't a console to obtain the width ( #11784 )
2020-02-12 11:48:58 +05:00
Steve Lee
db370dcc79
Enable pwsh to work on Windows systems where mpr.dll and STA is not available ( #11748 )
2020-02-04 10:52:19 -08:00
Steve Lee
6c6c9cc41e
Fix help function to check if less is available before usi… ( #11737 )
2020-02-03 14:38:11 -08:00
Steve Lee
66912b7428
Fix unnecessary trimming of line resulting in incorrect indexi… ( #11670 )
2020-01-30 11:03:39 -08:00
Steve Lee
de2d34b2ad
Support expanding ~ in $env:PATH when doing command discovery ( #11552 )
2020-01-14 10:24:26 -08:00
Steve Lee
f61c0d4444
Update building of MSIX for RC to use 100 range revision ( #11526 )
2020-01-09 11:58:51 -08:00
Steve Lee
59db1f619e
Fix symbolic links to libs on Debian 10 ( #11390 )
2019-12-27 17:14:51 -08:00
Steve Lee
5b42126f7c
Don't format exceptions that aren't ErrorRecords ( #11415 )
...
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously.
* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2019-12-21 09:45:44 +05:00
Steve Lee
27e1664e52
Add retry to Enter-PSHostProcess test ( #11360 )
2019-12-20 15:35:50 -08:00
Steve Lee
1f9c3c2abd
Update error message if Update-Help fails for the current UICulture ( #11356 )
2019-12-20 15:16:26 -08:00
Steve Lee
a1066ac0ac
Use PositionMessage for the line context information for ConciseView ( #11398 )
2019-12-19 09:42:37 -08:00
Steve Lee
563b1cba83
Add trailing line number to filename for ConciseView ( #11391 )
2019-12-18 14:05:56 -08:00
Steve Lee
384a7ba2d7
Remove the declaration of Get-Error experimental feature from module manifest ( #11369 )
2019-12-18 09:41:27 -08:00
Steve Lee
ab6b41dce3
Remove unnecessary newline in ConciseView ( #11383 )
...
* Add newline only if it's missing
2019-12-18 10:22:01 +05:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Steve Lee
03f10f052d
Add -AsPlainText to ConvertFrom-SecureString ( #11142 )
2019-12-11 15:40:41 -08:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Steve Lee
6e4da244c5
Update ConciseView to use TargetObject if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Steve Lee
20a236b228
Update setting PSModulePath to concatenate the process + machine env var ( #11276 )
2019-12-09 16:25:08 -08:00
Steve Lee
ee4eba5348
Update calculation of char width to respect CJK chars correctly ( #11262 )
2019-12-05 08:09:56 +05:00
Steve Lee
03668e79af
Add config.yml for ISSUE_TEMPLATE so that Doc, Security, Suppo… ( #11153 )
2019-12-04 15:08:14 -08:00
Steve Lee
8f4eb668c3
Add Adopters.md file ( #11256 )
...
* add Adopters.md file
* add example template
2019-12-03 14:40:21 -08:00
Steve Lee
51d2523f5f
Update formatter to not write newlines if content is empty ( #11193 )
2019-12-02 10:51:02 -08:00
Steve Lee
a1c2d3c977
Fix detection of $PSHOME in front of $env:PATH ( #11141 )
2019-11-23 15:17:08 -08:00
Steve Lee
2f672538b2
Add Type member to Exceptions containing type of exception for Get-Error ( #11076 )
2019-11-22 12:57:52 -08:00
Steve Lee
0aaced35ad
Update Get-Error to not modify the original $Error object ( #11125 )
2019-11-21 15:14:33 +05:00
Steve Lee
9b71696e33
Add OutputType to Get-Error cmdlet and preserve original typenames ( #10856 )
...
- Added OutputType attribute.
- Cmdlet adds the PSExtendedError typename and removes Exception and ErrorRecord typenames so that the formatting is used. The formatter then removes PSExtendedError and puts back the original typename so that $Error should be the same before calling Get-Error.
- While testing, had to make some changes to how InvocationInfo is retrieved so that ParseException which contains a nested ErrorRecord which as InvocationInfo is handled correctly.
- Combined Exception and ErrorRecord formatter into one.
2019-11-19 08:54:58 +05:00
Steve Lee
2e553038c5
Allow pwsh to inherit $env:PSModulePath and enable powershell.exe to start correctly ( #11057 )
2019-11-15 17:29:04 -08:00
Steve Lee
e65d1f1243
Add default setting for the SDKToUse property so that it builds in VS ( #11085 )
2019-11-15 17:07:15 -08:00
Steve Lee
e185f89591
Handle exception if enumerating files fails when rebuilding path to have correct casing ( #11014 )
2019-11-12 08:53:33 -08:00
Steve Lee
2a45ccc787
Fix ConciseView to show Activity instead of myCommand ( #11007 )
...
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee
c679536bb8
Increase time between retries of testing URL ( #11015 )
2019-11-08 20:28:06 +00:00
Steve Lee
ef64321db9
Fix piping more than one CommandInfo to Get-Command ( #10929 )
2019-11-07 11:59:24 -08:00
Steve Lee
7ddfb825e4
Add back Get-Counter cmdlet for Windows ( #10933 )
2019-11-05 16:48:11 -08:00
Steve Lee
f1b96eb74f
Remove brackets from ipv6 address for SSH Remoting ( #10968 )
2019-11-05 14:23:07 -08:00
Steve Lee
ee64f47e76
Enable build of x86 MSIX package ( #10934 )
2019-11-05 13:03:44 -08:00
Steve Lee
baf24102ff
Fix crash if command sent to pwsh is just whitespace ( #10977 )
2019-11-04 14:59:52 -08:00
Steve Lee and Ilya
b74a26bb91
Added cross-platform Get-Clipboard and Set-Clipboard ( #10340 )
...
Co-Authored-By: Ilya <darpa@yandex.ru >
Co-Authored-By: Ilya <darpa@yandex.ru >
2019-11-04 11:28:58 -08:00
Steve Lee
4b8462766f
Fix setting original path of filesystem object to not have extra trailing slash ( #10959 )
2019-11-02 22:09:08 +05:00
Steve Lee
70ab772da7
Support $null for convertto-json ( #10947 )
...
ConvertTo-Json doesn't allow $null to be passed in even though it can be valid resulting json. Fix is to remove the check that the input is not null. NewtonSoft.Json handles it just fine.
2019-11-01 23:54:31 +05:00
Steve Lee
6882ad56fd
Add back Out-Printer command ( #10906 )
2019-11-01 11:27:12 -07:00
Steve Lee
4b9c2b2008
Fix Start-Job -WorkingDirectory with whitespace ( #10951 )
2019-11-01 11:09:00 -07:00
Steve Lee
a3d73d751f
Handle IO Exception as non-terminating ( #10950 )
2019-11-01 10:06:40 -07:00
Steve Lee
ca68d9dbc5
Add GraphicalHost assembly to enable Out-GridView, Show-Command, and Get-Help -ShowWindow ( #10899 )
2019-11-01 10:05:32 -07:00
Steve Lee
df811929eb
Fix tab completion for parameters so that it shows common parameters as available ( #10850 )
2019-10-31 13:09:37 -07:00
Steve Lee
229762737d
Fix GetCorrectCasedPath() to first check if any system file entries is returned before calling First() ( #10930 )
2019-10-31 11:42:23 -07:00
Steve Lee
f48a28eff2
Change TabExpansion2 to not require -CursorColumn and treat as $InputScript.Length ( #10849 )
...
* FEATURE: Change TabExpansion2 to not require `-CursorColumn` and treat as `$InputScript.Length`
* address Jason's feedback
2019-10-30 20:45:28 +00:00
Steve Lee
00f41a74a5
Handle case where Host may not return Rows or Cols of screen ( #10938 )
2019-10-30 12:25:13 -07:00
Steve Lee
edda43dfb4
Fix use of accent colors for hosts that don't support them ( #10937 )
2019-10-30 12:24:25 -07:00
Steve Lee
0b12ea057a
Add back Update-List command ( #10922 )
2019-10-30 11:05:30 -07:00
Steve Lee
2746cb7b89
During Tab Completion, skip file if can't read file attributes ( #10910 )
2019-10-28 08:28:47 +05:00
Steve Lee
ca1b6fb4c5
Add back Clear-RecycleBin for Windows ( #10909 )
2019-10-28 08:18:26 +05:00
Steve Lee
87bb1e6f74
Update AppX Manifest and Packaging module to conform to MS Sto… ( #10878 )
2019-10-24 13:50:28 -07:00
Steve Lee
4ff9924cbf
Add $env:__SuppressAnsiEscapeSequences to control whether to… ( #10814 )
2019-10-24 12:45:26 -07:00
Steve Lee
90fb1ea41d
Fix stringdata test to correctly validate keys of hashtables ( #10810 )
2019-10-23 10:37:48 +05:00
Steve Lee
26c380de6e
Fix command runtime so StopUpstreamCommandsException doesn't get populated in -ErrorVariable ( #10840 )
2019-10-22 16:38:32 -07:00
Steve Lee
13f8ba284f
Set the output encoding to [Console]::OutputEncoding for native commands ( #10824 )
2019-10-19 10:09:44 +05:00
Steve Lee
3806c396b1
Disable strict mode in Get-Error formatting script ( #10800 )
2019-10-18 14:42:17 -07:00
Steve Lee
cb66974b25
Update upgrade notification message ( #10777 )
2019-10-17 10:19:38 -07:00
Steve Lee
d8d32d79c2
Implement Get-Error cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00
Steve Lee
0842fe8b8d
Enable tab completion for variable assignment that is enum ( #10646 )
2019-10-14 09:53:11 -07:00
Steve Lee
bf5956193f
Remove unused SourceLength remoting property causing formatting issues ( #10765 )
2019-10-12 22:10:10 +05:00
Steve Lee
1fa73e360f
Add back Get-HotFix cmdlet ( #10740 )
2019-10-11 22:51:43 +05:00
Steve Lee
36bc894d9b
For ConciseView, show line context information if multiple lines but no scriptname ( #10746 )
2019-10-10 16:06:43 +05:00
Steve Lee
ef2d740c44
Add support for \\wsl$\ubuntu path ( #10674 )
2019-10-08 15:52:04 -07:00
Steve Lee
bce5b20d2d
Update ConciseView to remove unnecessary text and not color entire line in red ( #10724 )
2019-10-08 14:14:23 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Steve Lee
77ddec1614
Add back newline for grouping with Format-Table and -Property ( #10653 )
2019-10-02 12:11:55 -07:00
Steve Lee
d8eca6a729
Remove [ValidateNotNullOrEmpty] from -InputObject on Get-Random to allow empty string ( #10644 )
...
* Remove [ValidateNotNullOrEmpty] from -InputObject on Get-Random
* address feedback to allow $null for -InputObject
* address Ilya's feedback
* address CodeFactor issues
2019-10-01 04:32:43 +00:00
Steve Lee
146f11b2a1
Add env var to differentiate client/server telemetry in MSI ( #10612 )
2019-09-24 10:25:58 -07:00
Steve Lee
becb4d98a6
Update MSIX packaging so the version to Store requirements ( #10588 )
...
update packaging msix so version conforms to Store requirment
2019-09-23 12:26:19 -07:00
Steve Lee
b0a3755b17
Minor fix for recursion into OneDrive - Change FindFirstFileEx() to use SafeFindHandle type ( #10405 )
2019-08-29 14:50:54 -07:00
Steve Lee
717b06fd2c
Rename default ParameterSetName back to Delimiter for ConvertTo-Csv & ConvertFrom-Csv ( #10425 )
...
* rename default parameterset name back to `Delimiter`
* also fix convertfrom-csv
* rename parametersetname for UseCulture back to UseCulture since there is no path for ConvertFrom-Csv
2019-08-23 09:08:40 +05:00
Steve Lee
82e3480bbf
Increase built-with-PowerShell module versions to 7.0.0.0 ( #10356 )
2019-08-22 15:33:30 -07:00
Steve Lee
a34d094b21
Add some regular contributors to allow access to retry CI ( #10397 )
2019-08-21 13:17:10 -07:00
Steve Lee
00949ab352
.CPL should be added to PATHEXT ( #9828 )
2019-08-17 22:45:13 +05:00
Steve Lee
4220271e0e
Move to .NET Core 3.0 preview.8 ( #10351 )
2019-08-15 13:42:17 -07:00
Steve Lee
5974afaa8d
Add support for AppX reparse points ( #10331 )
2019-08-13 17:45:41 -07:00
Steve Lee
828d12c237
Expose PreRelease label in PSModuleInfo formatter ( #10316 )
2019-08-09 16:36:53 +05:00
Steve Lee
882cbf367f
Enable Experimental Features by default on Preview builds ( #10228 )
2019-08-08 11:37:25 -07:00
Steve Lee
d84ebc1571
Update our language on our policy applying to security issues ( #10304 )
2019-08-06 16:32:58 -07:00
Steve Lee
3ca5a1bdb0
Don't collect process starttime as it's not being used on consolehost startup ( #10294 )
...
* mark _readyForInputTimeInMS member as part of LEGACYTELEMETRY
* move _interactiveCommandCount to LEGACYTELEMETRY
2019-08-06 08:55:16 +05:00
Steve Lee
30351c8549
Update dead links from powershell.com ( #10297 )
2019-08-05 09:49:56 -07:00
Steve Lee
2ed9abc99b
Enable -sta and -mta switches for pwsh ( #10061 )
2019-07-25 12:38:52 -07:00
Steve Lee
431ef0372a
Fix test password generation rule to meet Windows complexity requirements ( #10143 )
2019-07-12 12:11:45 -07:00
Steve Lee
5bc3d15a30
Check if a reparsepoint is a symlink before trying to get target ( #9895 )
2019-07-08 11:40:53 +05:00
Steve Lee
4d3f74eddc
Update console startup and help url for PowerShell docs ( #9775 )
2019-06-19 10:45:47 -07:00
Steve Lee
981c990d74
Make UseAbbreviationExpansion and TempDrive official features ( #9872 )
2019-06-13 13:05:37 -07:00
Steve Lee
89db7505d6
Have console host not enter command prompt mode when using Read-Host -Prompt ( #9743 )
...
`Read-Host` calls into `$Host.UI.Prompt()`. However, this method is also used when the host prompts for mandatory parameters that aren't provided. The method expects to be called when given a `FieldDescription` and if the input starts with `!` it enters `CommandPromptMode`. In this mode, you can type `!?` to request help, for example. However this mode is not something you can use via `Read-Host` (only if calling `$Host.UI.Prompt()` directly passing in a well constructed `FieldDescription`). When using `Read-Host -Prompt`, the cmdlet creates a `FieldDescription` where the name is the prompt and the rest of the properties are empty.
The fix is that if `Label` is empty, we can assume it's being called from `Read-Host` rather than being called to prompt for a mandatory parameter and thus not enter `CommandPromptMode`.
2019-06-09 07:55:11 -07:00
Steve Lee
b4e2423fab
Fix use of Start-Process http://bing.com ( #9793 )
2019-06-04 14:36:12 -07:00
Steve Lee
61c7b7f120
Fix daily CodeCoverageAndTest build by explicitly calling Start-PSBootStrap ( #9724 )
2019-05-24 11:13:40 -07:00
Steve Lee
ba94c6cfeb
Run Start-PSBootStrap in Code Coverage build to install .NET SDK ( #9690 )
2019-05-23 11:07:37 -07:00