Commit Graph
117 Commits
Author SHA1 Message Date
PowerShell Team Bot 559291f9d0 [release/v7.5] add CodeQL suppressions for UpdatableHelp and NativeCommandProcessor methods (#26171) 2025-10-09 15:57:12 -07:00
434f880bcd [release/v7.5] Add Codeql Suppressions (#25972)
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-09-03 21:32:16 +00:00
Patrick Meinecke 4faf52726d Make sure both stdout and stderr can be redirected from a native executable (#20997) 2024-03-14 11:42:30 -07:00
James Truher [MSFT] 77e8021256 Set experimental features to stable for 7.4 release (#20285) 2023-09-22 17:01:22 -07:00
Thomas Nieto 1af870c16c Remove blank lines as instructed by CodeFactor rules (#20086) 2023-08-21 10:05:41 -07:00
Patrick Meinecke 153feb2e60 Fix deadlock when piping to shell associated file extension (#19940) 2023-07-17 11:10:35 -07:00
Ikko Eltociear Ashimine 26f6219529 Fix typo in NativeCommandProcessor.cs (#19846) 2023-06-23 12:51:55 -07:00
Patrick Meinecke 066d7bff2c Fix native executables not redirecting to file (#19842) 2023-06-23 12:16:18 -07:00
Aditya Patwardhan ebe0b54340 Update to .NET 8 Preview 4 (#19696) 2023-06-21 15:17:22 -07:00
James Truher [MSFT] 5437f387cc Add a new experimental feature to control native argument passing style on Windows (#18706) 2023-06-19 16:31:56 -07:00
James Truher [MSFT] b9b5136f0e Avoid checking screen scraping on non-Windows platforms before launching native app (#19812) 2023-06-19 11:26:14 -07:00
Patrick Meinecke 16c6030f06 Fix the check when reading input in NativeCommandProcessor (#19614) 2023-05-04 12:00:18 -07:00
Patrick Meinecke 2424ad83aa Support byte stream piping between native commands and file redirection (#17857) 2023-04-27 17:17:32 -07:00
James Truher [MSFT] 14d7bfee1d Telemetry improvements for tracking experimental feature optout (#18762) 2023-03-08 09:29:11 -08:00
CarloToso d00407612c Fix codefactor if part 1 (#19266) 2023-03-03 23:51:53 +05:00
Ilya 3dc95ced87 Replace DllImport with LibraryImport - 1 (#18603) 2022-11-30 10:00:12 -08:00
Ilya 8686612cfe Replace DllImport with LibraryImport in SMA 3 (#18564) 2022-11-29 08:08:02 +05:00
Ilya 5b4a34fcc9 Replace DllImport with LibraryImport in SMA 4 (#18579) 2022-11-23 09:11:52 +05:00
Ilya 6aa74c5c3c Remove ArchitectureSensitiveAttribute from the code base (#18598) 2022-11-18 14:15:05 -08:00
Dongbo Wang b3a9ae371c Remove gcloud from the legacy list because it's resolved to a .ps1 script (#18575) 2022-11-15 17:53:01 -08:00
Steve Lee 04de3045e4 Add gcloud and sqlcmd to list to use legacy argument passing (#18559) 2022-11-15 14:01:51 -08:00
Steve Lee 9f459c05f6 Replace DllImport with LibraryImport in engine (#18496) 2022-11-10 08:24:11 +05:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +05:00
Ilya 8965af3d52 Remove some static constants from Utils.Separators (#18154) 2022-10-27 15:25:41 -07:00
Steve Lee 667e75559d On Unix, only explicitly terminate the native process if not in background (#18215) 2022-10-07 08:07:22 +05:00
xtqqczze fd67038ed8 Replace UTF8Encoding(false) with Encoding.Default (#18144) 2022-09-27 10:47:55 +05:00
Steve Lee 9213b77659 Allow commands to still be executed even if the current working directory no longer exists (#17579) 2022-08-01 21:43:54 -07:00
Frode Flaten 5f4e100456 Use null propagation operator for windows build (#17795)
* Use null propagation in CimCmdlets

* Use null propagation in Diagnostics and Management

* ignore IDE0031 rule in ConsoleHost

* Use null propagation in WSMan.Management

* Use null propagation in SMA

* ignore IDE0031 for securityDescHandle

* cleanup after review
2022-07-29 10:34:09 -07:00
Frode Flaten 4b4f1d144f Use null propagation operator in /engine (#17789) 2022-07-29 09:06:07 +05:00
James Truher [MSFT] 031fa93b4c Add find.exe to legacy argument binding behavior for Windows (#17715) 2022-07-20 14:47:50 -07:00
Shuangchi He 8cc39848bc Fix some typos in source code (#17481) 2022-06-06 10:14:53 -07:00
Dongbo Wang 186d6be47d Use NotifyEndApplication to re-enable VT mode (#16612)
Use NotifyEndApplication to re-enable VT mode instead of doing it in InputLoop.Run, so that we run this code only after invoking native commands
2022-01-14 09:07:06 +05:00
Ilya ef69fdafc4 Remove unneeded call to File.ResolveLinkTarget from IsWindowsApplication (#16371) 2021-11-03 22:28:04 -07:00
Dongbo Wang 723a50832d Don't throw exception when trying to resolve a possible link path (#16310) 2021-10-30 08:54:23 -07:00
Keith Hill b94dd91e74 Specify exe path as TargetObect for non-zero exit code ErrorRecord (#16108) 2021-10-14 14:47:54 -07:00
Dongbo Wang 2f57bf848b Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget (#16165) 2021-10-05 10:29:16 -07:00
Dongbo Wang 403767d7f7 Fix a casting error when using $PSNativeCommandUsesErrorActionPreference (#15993) 2021-08-25 17:05:54 -07:00
Robert Holt a4d14576b3 Make the native command error handling optionally honor ErrorActionPreference (#15897) 2021-08-24 15:27:22 -07:00
James Truher [MSFT] ac762c1cce Add a Windows mode for native commands that allows some commands to use legacy argument passing (#15408) 2021-07-20 23:10:04 +00:00
Steve Lee 1df4236e6c Kill native processes in pipeline when pipeline is disposed on Unix (#15287) 2021-04-26 15:10:35 -07:00
James Truher [MSFT]andIlya a520e2c982 Native invocation using ArgumentList (#14692)
Co-authored-by: Ilya <darpa@yandex.ru>
2021-04-01 14:54:10 -07:00
xtqqczze c909541b77 Mark private members as static part 9 (#14234)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:10:43 +05:00
xtqqczze cba73e724f Enable SA1106: Code should not contain empty statements (#13964)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze 99a49e0eab Enable SA1131: Use readable conditions (#14132)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md
2020-11-20 17:26:46 +05:00
xtqqczze b521b858ad Fix RCS1049: Simplify boolean comparison (#13994)
* Fix RCS1049: Simplify boolean comparison

https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1049.md

Related https://github.com/dotnet/runtime/pull/44564
2020-11-13 09:39:25 +05:00
xtqqczze 03a0ef26e6 Fix RCS1098: Constant values should be on right side of comparisons (#13833)
* Fix RCS1098: Constant values should be on right side of comparisons

https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1098.md
2020-11-05 09:13:12 +05:00
xtqqczze 4ed88dedbc Fix IDE0044: MakeFieldReadonly part 12 (#13967)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-11-05 08:36:23 +05:00
Steve Lee 16cc9aaaf8 Fix blocking wait when starting file associated with a Windows application (#13750)
* Fix blocking wait when starting file associated with a Windows application in elevated process

* refactor check if app is WindowsApp
2020-10-07 12:58:24 +05:00
xtqqczze 8f37cced70 Cleanup: remove duplicate words in comments (#13539) 2020-08-31 11:39:00 -07:00
Ilya 4e2b6e9540 Process reparse points for Microsoft Store applications (#13481) 2020-08-27 11:51:19 -07:00