Skip to content

Commit

Permalink
Clarify note
Browse files Browse the repository at this point in the history
Reword to improve clarity. Emphasize that changes to preference variables are not global by default.
  • Loading branch information
guillermooo committed Jul 12, 2024
1 parent 0b510b3 commit 42bb0df
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ preferences. For more information about these environment variables, see
- `$env:PSModulePath`

> [!NOTE]
> Changes to preference variable only take effect in scripts and functions if
> those scripts or functions are defined in the same scope as the scope in
> which preference was used. For more information, see [about_Scopes][40].
> Changes to preference variables apply only in the scope they are made
> and any child scopes thereof. For example, you can limit the effects of
> changing a preference variable to a single function or script. For more
> information, see [about_Scopes][40].
## Working with preference variables

Expand Down

0 comments on commit 42bb0df

Please sign in to comment.