Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
Shell basics
When should a script save the special parameter whose name is `$?`?
from Shell basics
GNU Bash 5.2.21
beginner
3 min
When should a script save the special parameter whose name is `$?`?
Immediately after that command, before logging or testing anything else
After printing a diagnostic message
Only at the end of the script
Before running the command
Check
Ask AI about this kata
Report an error
next kata
A script exports REGION=eu and starts a child process. The child changes REGION to us. Wh…
Quiz
A new version is available
Reload