Skip to content

Commit

Permalink
Merge pull request #713 from Dianshii/patch-5
Browse files Browse the repository at this point in the history
补充 12-05 漏翻内容
  • Loading branch information
KaiserY committed Mar 25, 2023
2 parents 2b0f3e9 + c3bccdd commit 53fa4d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ch12-05-working-with-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ $ IGNORE_CASE=1 cargo run to poem.txt
PS> $Env:IGNORE_CASE=1; cargo run to poem.txt
```

而这会让 `IGNORE_CASE` 的效果在当前 shell 会话中持续生效。可以通过 `Remove-Item` 命令来取消设置:

```console
PS> Remove-Item Env:IGNORE_CASE
```

这回应该得到包含可能有大写字母的 “to” 的行:

```console
Expand Down

0 comments on commit 53fa4d4

Please sign in to comment.