Commit Graph
1707 Commits
Author SHA1 Message Date
Dongbo Wang 124a59b8a8 Merge pull request #2363 from lzybkr/maxvars
Remove most Maximum* capacity variables
2016-09-28 17:28:16 -07:00
Jason Shirk (POWERSHELL) f252683e90 Remove SessionStateOverflowException
This exception is no longer used by PowerShell, so it has been removed.

It is a public api, so removing it risks breaking somebody. Nobody has any reason
to catch or throw this exception, so it seems safe to remove, but I decided to
be conservative and keep it for Windows PowerShell.  It seems safe enough to remove
in Nano.
2016-09-28 15:47:08 -07:00
Manikyam Bavandla MSFT c69520c261 Updating the ModuleVersion to 1.1.0.0 2016-09-28 15:33:05 -07:00
Manikyam Bavandla MSFT 16b86bfb89 Merging the changes from Windows Source Depot.
Change details:
- Add metadata to the PowerShellGet.psd1
- Fixed special chars in PSGet.Resource.psd1
- Catalog signing verification changes from Windows Source Depot
2016-09-28 15:33:05 -07:00
Mike Richmond 9f9add03f6 Fixing PowerShellProperties.json reads to do a basic validity check prior to processing the JSON 2016-09-28 10:55:48 -07:00
Charu Bassi 5cbf1b43de Fix 'Get-ChildItem -Hidden' to work on system hidden files like c:\hiberfil.sys c:\pagefile.sys and c:\swapfile.sys 2016-09-27 16:13:03 -07:00
Dongbo Wang d04460657d Merge pull request #2336 from lzybkr/stdin_fixes
Fix some issues with `powershell -Command -`
2016-09-27 11:20:43 -07:00
Aditya Patwardhan 9d1d927ecd Fix CategoryInfo.Activity so that it has the specified value
CategoryInfo.Activity of Write-Error does not honor the value for
'activity' but uses the hard-coded string 'write-error'. The change sets
the value if specified by Write-Error cmdlet or set 'write-error'.
2016-09-27 09:50:43 -07:00
Dongbo Wang 1ea555810c Fix Get-Credential to not prompt twice when no parameter is specified 2016-09-27 09:49:28 -07:00
Jason Shirk (POWERSHELL) c7951e13c0 Remove most Maximum* capacity variables
MaximumErrorCount is fixed at 256 (we may want to consider an environment variable to make this bigger)

MaximumAliasCount, MaximumDriveCount, MaximumFunctionCount, and MaximumVariableCount have been removed.
2016-09-26 15:16:35 -07:00
Dongbo Wang 89b5ae5de1 Fix $? assignment to not crash powershell 2016-09-26 11:56:12 -07:00
Jason Shirk (POWERSHELL) 07b0964be4 Fix hang when reading stdin from ruby
This is a workaround for a full clr issue that causes a hang when calling PowerShell from ruby.
They use named pipes instead of anonymous pipes, and for some reason that triggers the hang.
2016-09-26 11:22:28 -07:00
Mike Richmond 5c88dbf326 Merge pull request #2241 from jeffbi/convertto-html-coreclr
Make ConvertTo-Html work on CoreCLR
2016-09-22 13:24:17 -07:00
Dongbo Wang bf59194c6e Fix binary operator tab completion (#2338) 2016-09-22 11:56:38 -07:00
Jason Shirk (POWERSHELL) 1913244fad Fix powershell -Command - handling of backspace
PowerShell can be started with input redirected in different scenarios.

`powershell -Command -` is one scenario where commands are sent to
PowerShell, but this is not a interactive shell scenario, it's really
a server to run commands from some other process.

`powershell -File -` or just regular redirected input means PowerShell
is an interactive shell, but command line editing must be done via
the redirected standard input handle instead of interacting directly
with a console handle.

In this scenario, we want to provide a good editing experience. Today,
we provide the bare minimum, supporting backspace but no cursor movement.

The bug here is that backspace was treated as a backspace in the server mode
but should not have been.
2016-09-21 15:01:33 -07:00
Jason Shirk (POWERSHELL) f095320787 Fix powershell -Command - to not ignore last command
If the last command sent via stdin did not have a newline,
the command was ignored. This would happen when stdin was closed.
2016-09-21 14:42:16 -07:00
Mike Richmond 4e6b06f010 Merge pull request #2313 from jsoref/spelling-public
spelling: public identifiers in src/Microsoft.WSMan.Management
2016-09-20 12:36:33 -07:00
Josh Soref 6d19f046ac spelling: public identifiers in src/Microsoft.WSMan.Management 2016-09-16 03:07:16 +00:00
Sergei Vorobev 6992a6479a Merge pull request #2260 from jsoref/spelling-public
Fix spelling in public APIs
2016-09-19 17:33:46 -07:00
McAndersDK 5738f37b74 Added support for title in get-Credential, and message set to optional. (#1904)
* Update CredentialCommands.cs

Added possibility to add title to the credential prompt window.
Added possibility to only supply username without giving a message.

* Added Test for Get-Credential new feature. (Title, and Message only optional.)
2016-09-16 14:53:55 -07:00
Dongbo Wang 0426b44541 Merge pull request #2156 from charub/StartProcessIssue
Provide an unsupported message for 'Verb' parameter (#1691)
2016-09-15 21:00:06 -07:00
Josh Soref 552640506e grammar: may be
maybe be -- does not really make sense, it should almost always be
written as simply: may be.
2016-09-16 02:40:19 +00:00
Josh Soref e579e85b39 Spelling ps1 (#2256)
* spelling: locals in src/Modules/Shared/PowerShellGet

* spelling: locals in src/Modules/Windows-Full
2016-09-15 13:10:05 -07:00
charub 3d7beb4425 Provide an unsupported message for 'Verb' parameter (#1691)
Add the 'Verb' parameter to Powershell core and add an unsupported message
for the same.
2016-09-15 10:50:36 -07:00
Dongbo Wang 3d43053e3a Merge pull request #2255 from jsoref/spelling-call
spelling: call in Microsoft.PackageManagement/providers/IPackageProvi…
2016-09-15 09:54:45 -07:00
Sergei Vorobev a266f11b00 Merge pull request #2182 from douglaswth/fix-passing-escaped-double-quoted-spaces-to-native.exe
Fix passing escaped double quoted spaces to native executables
2016-09-14 19:07:56 -07:00
Sergei Vorobev 4ee52fe3d2 Merge pull request #2259 from jsoref/spelling-debug
Spelling debug
2016-09-14 19:04:34 -07:00
Dongbo Wang 151585535d Merge pull request #2250 from mirichmo/mirichmo/localgroup-description-length
Removing length restriction on Description since SAM allows greater than 48 characters
2016-09-14 17:57:22 -07:00
Mike Richmond d3a49c2a54 Merge pull request #2265 from daxian-dbw/improve-modulepath
Improve ModulePath calculation and refactor related method names
2016-09-14 17:22:47 -07:00
Mike Richmond 080b50f887 Removing length restriction on Description since SAM allows greater than 48 characters 2016-09-14 17:18:11 -07:00
Dongbo Wang fe38bc76d6 Merge pull request #2262 from jsoref/spelling-display
Spelling display
2016-09-14 16:53:23 -07:00
Dongbo Wang fdd514108c Improve the logic to detect PSHome module path derived from a different powershell core instance. 2016-09-14 15:19:12 -07:00
Dongbo Wang 9179cecd01 Refactor method names related to 'PSHomeModulePath' and 'SharedModulePath' 2016-09-14 15:19:12 -07:00
Paul Higinbotham 0ba1e2d9d1 Minor improvements to SSH remoting cmdlets (#2249)
* Fix for relative paths for KeyFilePath cmdlet parameter, renamed cmdlet KeyPath parameter to KeyFilePath parameter, and added tests.

* Code review comment update

* Added missing KeyFilePath check

* Test fix from review comment
2016-09-14 15:13:10 -07:00
Josh Soref fb467d497d spelling: error ids in ErrorRecord (#2258) 2016-09-14 12:51:07 -07:00
Sergei Vorobev 81a598f242 Merge pull request #2089 from 0xfeeddeadbeef/master
Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
2016-09-13 15:14:46 -07:00
Douglas Thrift 8bca1f50c5 Fix passing escaped double quoted spaces to native executables 2016-09-13 13:37:42 -07:00
Paul Higinbotham 79ddafcc85 Fix for Linux remote script debugging hang (#2213)
* Fix for Linux remote debugging hang bug.

* Removing dependency in PSReadLine on new engine helper API since it needs to be compatible with V3.
2016-09-13 11:31:48 -07:00
George Chakhidze 7ce34224c2 Remove '.ni' from module help file name (indicating a Ngen binary)
Fixes #2088
2016-09-13 09:40:14 +04:00
George Chakhidze e8190a569b Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
Also includes these bugfixes:
  - WSManConfigProvider.GetHelpMaml: Tried to load XML from
    MemoryStream that was created from file name string. Use XmlReader
    instead.
  - WSManConfigProvider.GetHelpMaml: Use Path.Combine instead of
    platform-specific directory separator character.
  - WSManConfigProvider.GetHelpMaml: CmdletHelpPath MAML XML element
    attribute `ID` name casing seems inconsistent with other help.xml
    files. XPath 1.0 does not support case-insensitive expressions,
    use both `id` and `ID` in query.
  - Add Pester test to verify that Get-Help shows provider-specific help.

Fixes #2088
2016-09-13 09:40:14 +04:00
Andrew Schwartzmeyer e7537b7ef4 Improve GetFullyQualfiedName() test 2016-09-12 15:01:18 -07:00
Andrew Schwartzmeyer b86b1f870a Fix memory leak in GetFullyQualifiedName() 2016-09-12 15:01:18 -07:00
Jeff Bienstadt e8481e6a53 Make ConvertTo-Html work on CoreCLR
This also includes some Pester test for the cmdlet.
2016-09-12 11:17:59 -07:00
Ben Tucker 7071137085 Fix test-locale.cpp to report failing value (#2191)
ASSERT_TRUE("a"=="b") only reports that the strings do not match, hiding
their values.
ASSERT_STREQ("a","b") is a functionally equivalent test, but reports
back the values of the failing strings for easier troubleshooting.
2016-09-08 13:44:13 -07:00
Josh Soref fd1d7a128f grammar: TransactedRegistry stub in System.Management.Automation CoreCLR (#2196)
PowerShell has some stubs to enable code to almost sort of work with things.
Some of the stubs try to say "Do not use me".

This commit corrects the grammar of the message.

Previously the message tried to apply a past tense form to `hit`,
but the past tense of `hit` is `hit`, and while breakpoints can
be hit, it's better to talk to the user about what should be done/
should not be done.
2016-09-07 11:29:42 -07:00
Sergei Vorobev 7a89b33f8b Merge pull request #2154 from jsoref/spelling-locals
Spelling locals
2016-09-06 12:18:33 -07:00
Josh Soref 40bd7a70d3 spelling: call in Microsoft.PackageManagement/providers/IPackageProvider.cs 2016-09-06 17:48:36 +00:00
Andrew Schwartzmeyer 683e6fbe36 Remove incorrect logic from GetFullyQualifiedName()
I think this logic was originally added with the assumption that any
hostname with a dot in it was an FQDN. I believe this is incorrect. The
hostname is the hostname regardless of included dots, and getting the
FQDN amounts to always querying for the canonical name.
2016-09-02 10:27:11 -07:00
Dongbo Wang 2bff2443ee Merge pull request #2167 from jsoref/spelling-hangul
spelling: Hangul (unify spelling)
2016-09-02 09:38:40 -07:00
Josh Soref 9e30dc64db spelling: Hangul (unify spelling)
Before this commit there were three spellings, one of which was a typo,
one was a variant spelling, and one was the dominant spelling.

Microsoft generally uses Hangul for its enums:
https://msdn.microsoft.com/en-us/library/cc250412.aspx
And this is the dominant spelling in general and as used in web browsers.
2016-09-02 15:14:45 +00:00