Task: Detect Undefined vs Empty Variables in Bash
Task: Detect Undefined vs Empty Variables in Bash: a task in Terminal-Lego-15k (Harbor dataset). In Bash scripting, there is an important distinction between a variable that is undefined (never set) and a variable that is defined but empty (set to an empty string). Your task is to create a Bash…
The task
In Bash scripting, there is an important distinction between a variable that is **undefined** (never set) and a variable that is **defined but empty** (set to an empty string). Your task is to create a Bash script that can correctly distinguish between these two cases.
Part of PrimeIntellect/Terminal-Lego-15k.