Skip to content

Commit

Permalink
Change "operable" to "executable" (PowerShell#13281)
Browse files Browse the repository at this point in the history
* Change "operable" to "executable" in a resource string
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

yecril71pl authored Aug 6, 2020
1 parent bedd3bc commit 8626937
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -865,7 +865,7 @@ internal static CommandInfo LookupCommandInfo(
if (result == null)
{
discoveryTracer.TraceError(
"'{0}' is not recognized as a cmdlet, function, operable program or script file.",
"'{0}' is not recognized as a cmdlet, function, executable program or script file.",
commandName);

CommandNotFoundException e =
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@
<value>Cannot process the cmdlet. A cmdlet name must consist of a verb and noun pair separated by '-'.</value>
</data>
<data name="CommandNotFoundException" xml:space="preserve">
<value>The term '{0}' is not recognized as the name of a cmdlet, function, script file, or operable program.
<value>The term '{0}' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.</value>
</data>
<data name="CmdletNotFoundException" xml:space="preserve">
@@ -143,7 +143,7 @@ Check the spelling of the name, or if a path was included, verify that the path
<value>The argument '{0}' is not recognized as a cmdlet, possibly because it does not derive from the Cmdlet or PSCmdlet classes: {1}</value>
</data>
<data name="AliasNotResolvedException" xml:space="preserve">
<value>Cannot resolve alias '{0}' because it refers to term '{1}', which is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</value>
<value>Cannot resolve alias '{0}' because it refers to term '{1}', which is not recognized as a cmdlet, function, executable program, or script file. Verify the term and try again.</value>
</data>
<data name="CommandNameNotCmdlet" xml:space="preserve">
<value>Parameter '{0}' with value '{1}' cannot be processed because it is not a cmdlet and cannot be processed by the CommandProcessor.</value>
Original file line number Diff line number Diff line change
@@ -502,7 +502,7 @@ Describe "Additional tests for Import-Module with WinCompat" -Tag "Feature" {
$ConfigPath = Join-Path $TestDrive 'powershell.config.json'
'{"DisableImplicitWinCompat" : "True","Microsoft.PowerShell:ExecutionPolicy": "RemoteSigned"}' | Out-File -Force $ConfigPath
& $pwsh -NoProfile -NonInteractive -settingsFile $ConfigPath -c "[System.Management.Automation.Internal.InternalTestHooks]::SetTestHook('TestWindowsPowerShellPSHomeLocation', `'$basePath`'); Test-$ModuleName2" *> $LogPath
$LogPath | Should -FileContentMatch 'not recognized as the name of a cmdlet'
$LogPath | Should -FileContentMatch 'not recognized as a name of a cmdlet'
}

It "Successfully auto-imports incompatible module during CommandDiscovery\ModuleAutoload if implicit WinCompat is Enabled in config" {

0 comments on commit 8626937

Please sign in to comment.