File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function Invoke-Interpreter {
8
8
9
9
This command is not used directly, it is used by creating an alias to invoke-interpreter.
10
10
11
- This will happen automatically as you attempt to use commands that have an associated interpreter
11
+ This will happen automatically as you attempt to use commands that have an associated interpreter.
12
12
#>
13
13
param ()
14
14
@@ -26,7 +26,7 @@ function Invoke-Interpreter {
26
26
$MyWords = @ ($myLine -split ' \s{1,}' )
27
27
28
28
# If the first word is a variable
29
- if ($MyWords [0 ] -match ' ^\$(?<v>\w+)' ) {
29
+ if ($MyWords [0 ] -match ' ^\$(?<v>\w+)' ) {
30
30
$firstWordVariableValue = $ExecutionContext.SessionState.PSVariable.Get ($matches.0 -replace ' ^\$' ).Value
31
31
# and it has a value
32
32
if ($firstWordVariableValue ) {
@@ -37,7 +37,7 @@ function Invoke-Interpreter {
37
37
# If the first word is not a variable,
38
38
elseif ($MyWords [0 ] -match ' ^(?<w>\w+)' ) {
39
39
# see if it's an alias
40
- $firstWordAlias = $ExecutionContext.SessionState.InvokeCommand.GetCommand ($mywords [0 ], ' Alias' )
40
+ $firstWordAlias = $ExecutionContext.SessionState.InvokeCommand.GetCommand ($mywords [0 ], ' Alias' )
41
41
if ($firstWordAlias.ReferencedCommand -ne $myInv.MyCommand.Name ) {
42
42
# and use the referenced command as the invocation name.
43
43
$invocationName = $firstWordAlias
You can’t perform that action at this time.
0 commit comments