File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ internal enum PreferenceVariable
140
140
Confirm = 14 ,
141
141
}
142
142
143
+ internal const string Host = "Host" ;
143
144
internal const string HistorySize = "MaximumHistoryCount" ;
144
145
internal const string OutputEncoding = "OutputEncoding" ;
145
146
internal const string NestedPromptLevel = "NestedPromptLevel" ;
@@ -159,6 +160,7 @@ internal enum PreferenceVariable
159
160
160
161
internal static readonly string [ ] OtherInitializedVariables = new string [ ]
161
162
{
163
+ Host ,
162
164
HistorySize ,
163
165
OutputEncoding ,
164
166
NestedPromptLevel ,
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ function Test {
9
9
10
10
$a = 3 ;
11
11
12
+ # should not raise error
13
+ $Host
14
+
12
15
" hi there!" -match " hi" | Out-Null ;
13
16
$matches [0 ];
14
17
You can’t perform that action at this time.
0 commit comments