Merge pull request #375 from Gui-Yue/fix-s03-permission-example

docs: fix s03 permission gate example
This commit is contained in:
gui-yue
2026-06-22 16:14:34 +08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
Try these prompts:
1. `Create a file called test.txt in the current directory` (should pass through)
2. `Delete all temporary files in /tmp` (bash + rm triggers Gate 2)
2. `Delete the file test.txt` (bash + rm triggers Gate 2)
3. `What files are in the current directory?` (read-only, all pass)
4. `Try to write a file to /etc/something` (writing outside workspace triggers Gate 2)

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
以下のプロンプトを試してみよう:
1. `Create a file called test.txt in the current directory`(そのまま通過するはず)
2. `Delete all temporary files in /tmp`bash + rm でゲート 2 が発動)
2. `Delete the file test.txt`bash + rm でゲート 2 が発動)
3. `What files are in the current directory?`(読み取り専用、すべて通過)
4. `Try to write a file to /etc/something`(作業ディレクトリ外への書き込みでゲート 2 が発動)

View File

@@ -139,7 +139,7 @@ python s03_permission/code.py
试试这些 prompt
1. `Create a file called test.txt in the current directory`(应该直接通过)
2. `Delete all temporary files in /tmp`bash + rm 会触发闸门 2
2. `Delete the file test.txt`bash + rm 会触发闸门 2
3. `What files are in the current directory?`(只读,全部通过)
4. `Try to write a file to /etc/something`(写工作区外,触发闸门 2