From c3bccdd5611cf77e35e545a331d9a9459418bc39 Mon Sep 17 00:00:00 2001 From: Dianshii <74195924+Dianshii@users.noreply.github.com> Date: Sat, 25 Mar 2023 03:00:04 +0100 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=2012-05=20=E6=BC=8F=E7=BF=BB?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ch12-05-working-with-environment-variables.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ch12-05-working-with-environment-variables.md b/src/ch12-05-working-with-environment-variables.md index f855952..22e4500 100644 --- a/src/ch12-05-working-with-environment-variables.md +++ b/src/ch12-05-working-with-environment-variables.md @@ -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