essay
medium
Understand
assignment
2 points
Question 39. CSCD240-E1-A
A) FOO=bar B) FOO = bar. Which is valid? One-sentence explanation of the error.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
A is valid. B is not — bash interprets FOO as a command name when there are spaces around =.
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
B is valid (FOO = bar)
Misconception. Reverses the rule.
Remedy. Hard rule: no spaces around = in bash assignment.
Both valid
Misconception. Missing the syntax rule.
Remedy. Demo: FOO = bar produces "FOO: command not found".
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
IT-451 System Administrator
DCWF tasks:
T0498
KU outcomes:
CD-BSP-O1
KU topics:
CD-BSP-T8d
Course-artifact links
Lectures
- CSCD240-S26-L07. I/O redirection, aliases, source, .bashrc, env
Lab questions
- CSCD240-S26-LAB4: echo $HOME, echo $PATH, echo $USER. Explain each.
CTF challenges
- 04 Environment & Patterns: Mind the Gap