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
/
Pipes and redirection
Which statement about `value=$(command)` in Bash is correct?
from Pipes and redirection
GNU Bash 5.2.21
intermediate
3 min
Which statement about `value=$(command)` in Bash is correct?
It preserves every trailing newline and NUL byte.
It captures standard error and discards standard output.
It captures standard output but removes trailing newlines; later expansions still need quoting.
It automatically fails if the output is empty.
Check
Ask AI about this kata
Report an error
next kata
When does a blocking pipe reader observe end-of-file?
Quiz
A new version is available
Reload