Commit Graph
747 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 1457082fd0 Fix powershell -c 'throw error'
When executing a single command block, two bugs existed.

1) Exceptions were not reported, instead it core dumped
2) The error code was not set, instead 0 was returned

Fixing 1) required calling `Execute` instead of `ExecuteHelper` as the
latter handles exception through `ReportException`.

Fixing 2) required setting the listener's error code when an exception
was thrown, and resetting it for each command when an interactive
session is running.
2016-03-17 13:32:10 -07:00
James Truher [MSFT] 17d545b1e0 Bump submodule version to include the new behavior for Drive: 2016-03-16 10:27:22 -07:00
Sergei Vorobev 99a55b7a72 Fix #528 : make powershell.exe build with VS 2015
Add legacy_stdio_definitions.lib to the list of linked assemblies
2016-03-15 13:06:26 -07:00
Andrew Schwartzmeyer 3eeda101c3 Bump NETStandard.Library to 1.5.0-rc2-23911
The rc3-23914 version does not restore `System.Private.Uri` correctly,
but this version does. Bug reported to dotnet/corefx#6883.
2016-03-14 17:03:58 -07:00
Andrew Schwartzmeyer 9bd361abe1 Bump .NET package builds to 23914 2016-03-14 16:55:25 -07:00
Andrew Schwartzmeyer 830c6b50d2 Fix runtime facade package versions
These packages had their semantic versions get updated, but the
corresponding packages in the facade were forgotten.
2016-03-14 16:51:05 -07:00
Andrew Schwartzmeyer c87d99bba0 Bump omi-provider with AppContext.BaseDirectory fix 2016-03-14 13:38:25 -07:00
Andy Schwartzmeyer bf4321af8b Merge pull request #650 from PowerShell/remoteshutdown
Bump monad module for remote shutdown.
2016-03-11 12:43:02 -08:00
v-alexjo 2df5d75c1f Bump monad module for remote shutdown. 2016-03-11 12:15:56 -08:00
Sergei Vorobev a3267cc29d Merge pull request #648 from PowerShell/net451
Change FullCLR framework to `net451`
2016-03-09 21:27:09 -08:00
Andrew Schwartzmeyer ed1536ed7f Bump monad with quick bugfix 2016-03-09 15:10:59 -08:00
Andrew Schwartzmeyer 7f60921094 Target net451 instead of dnx451 for FulLCLR 2016-03-09 14:25:35 -08:00
Andrew Schwartzmeyer 6624814a69 Bump monad submodule with PsModulePath fix 2016-03-09 13:46:37 -08:00
Paul Allen 11cba90394 Bump OMI and PSRP provider modules
Brings in changes to support remote connect/disconnect/reconnect.
2016-03-08 16:16:39 -08:00
Andy Schwartzmeyer 0748910278 Merge pull request #635 from PowerShell/rpm
Add CentOS 7.1 support
2016-03-07 22:02:57 -08:00
Andrew Schwartzmeyer 9c41d1eff7 Bump monad and windows-build submodules with SD updates 2016-03-07 16:35:22 -08:00
Andrew Schwartzmeyer 5671a1113d Add CentOS 7.1 runtime 2016-03-07 15:31:08 -08:00
Andrew Schwartzmeyer 24eaf8bad8 Add newly required packages
These packages are new requirements as of the 23907 build due to
refactoring of the .NET libraries.
2016-03-07 14:17:31 -08:00
Andrew Schwartzmeyer faec94ffcf Add Microsoft.NETCore.Unsupported.Platform.API package
This package contains the Windows runtime assemblies of packages that
are not actually supported on Linux. The assemblies exist in the Linux
runtime folder. While the code cannot be executed, this allows
PowerShell to use the Windows specific types in its function calls
without crashing (and allows compiling with these types in the first
place). This is *not* an ideal work-around, but we are waiting on a
better package from .NET that contains Linux runtime assemblies that
throw `PlatformNotSupported` exceptions on use.
2016-03-07 14:17:31 -08:00
Andrew Schwartzmeyer 93f8a3360f Bump versions of upgraded packages
These packages had their minor and patch versions updated in addition to
the updated build number.
2016-03-07 13:59:11 -08:00
Andrew Schwartzmeyer e12f5a427e Bump .NET packages to 23907 2016-03-07 13:59:11 -08:00
Andrew Schwartzmeyer 876a3164b8 Bump libpsl-native with OS X fixes 2016-03-04 20:02:46 -08:00
George Fleming 43508acc18 Add src/monad 2016-03-04 16:51:40 -08:00
George Fleming 3849c9256e Add src/libpsl-native 2016-03-04 16:51:24 -08:00
Andy Schwartzmeyer 4b744189d0 Merge pull request #623 from PowerShell/xplat-pester
Add Microsoft.PowerShell.Platform module
2016-03-04 16:43:30 -08:00
George Fleming dbe06ac2d7 Bump monad submodule with Invoke-History fix 2016-03-04 15:25:14 -08:00
Andrew Schwartzmeyer 7673c4e90f Add Microsoft.PowerShell.Platform module
- Exports the IsCore, IsLinux, IsOSX, and IsWindows variables
- Imported by the default PSL profile
- Can be used automatically in Pester tests and Open PowerShell sessions
- Should maybe become a default module once it is polished
- PowerShellGitHubDev module does not explicitly use it because on
  FullCLR PowerShell (normal Windows development) it will not be
  imported automatically
2016-03-04 12:11:01 -08:00
Andrew Schwartzmeyer c94ad6c97c Bump OMI and provider submodules
Emergency fix for recursive cloning.

The OMI branch had been rebased upstream and not simultaneously fixed
here.
2016-03-04 10:50:54 -08:00
Andrew Schwartzmeyer 19d5b2b53a Bump monad and windows-build with Source Depot changes
Resolves #610.
2016-03-03 18:09:52 -08:00
Andy Schwartzmeyer cdd0e9daef Merge pull request #601 from PowerShell/newitem
Modify New-Item to support Symbolic Link on Linux
2016-03-01 16:32:14 -08:00
George Fleming b1edc1f039 Bump monad 2016-03-01 15:57:11 -08:00
George Fleming c02b29847f Bump libpsl-native 2016-03-01 15:56:00 -08:00
Andy Schwartzmeyer 37d457f56c Merge pull request #602 from PowerShell/pipes
Clean up usage of pipes, as it causes crashes in debugger sub-prompt
2016-03-01 15:53:15 -08:00
George Fleming 95cea5155b cleanup per andschwa comment 2016-03-01 15:33:29 -08:00
Andrew Schwartzmeyer fd9140f9f8 Update CorePsTypeCatalog 2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 3abbf62428 Fix TypeCatalogGen script 2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 855891dc12 Clean up TypeCatalogGen dependencies
Pin to stable packages and use `net45` moniker instead of DNX.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer da9f5068aa Update runtime facade with additional packages
This had gotten out of date since it is a manual process.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 744e1e2fbb Add System.Xml.XDocument dependency to host
This resolves #604 but leaves an open question of why the package is
required at runtime, but not at compile-time.
2016-03-01 13:25:31 -08:00
Andrew Schwartzmeyer 9f88341db1 Remove trailing comma from project.json 2016-03-01 13:21:32 -08:00
Andrew Schwartzmeyer 840c634d5e Bump .NET packages to 23829 2016-03-01 12:26:30 -08:00
George Fleming ab3203916b Clean up usage of pipes, as it causes crashes in debugger sub-prompt 2016-02-29 09:51:26 -08:00
Andrew Schwartzmeyer 27f38f161c Bump monad with DataTable removal 2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer a67a0ca122 Add System.Threading.Thread package
Now needed to use the `Thread` type.
2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer 2518b0ab3f Bump .NET packages to 23826 2016-02-26 12:26:28 -08:00
Andrew Schwartzmeyer af3e15a7bc Don't treat MMI warnings as errors on FullCLR
It can only build with warnings.

It will error if the full `SafeHandleZeroOrMinusOneIsInvalid` type is
used on FullCLR because the derivation is not completely implemented.
2016-02-24 16:35:07 -08:00
Andrew Schwartzmeyer 966be6a792 Treat C# warnings as errors 2016-02-24 16:33:17 -08:00
Andrew Schwartzmeyer 1b59a60550 Fix compiler warning about unused variable 2016-02-24 16:33:17 -08:00
Andy Schwartzmeyer 4c69299d89 Merge pull request #586 from PowerShell/multiline
Add support for multi-line input
2016-02-23 16:41:36 -08:00
Andy Schwartzmeyer bbe0f6b0fa Merge pull request #585 from PowerShell/cursor
Fix crash when cursor goes 'off screen'
2016-02-23 16:34:14 -08:00