DEV Community

Discussion on: Handling Arguments in Bash Scripts

Collapse
 
bewuethr profile image
Benjamin Wuethrich

If you quote brace expansion, as in

mkdir -p "${project_name}/{CAD,drawings,mold,resources}"

it'll create a directory that's literally called {CAD,drawings,mold,resources}; brace expansion must not be quoted.

Collapse
 
rpalo profile image
Ryan Palo

Ooh good catch. You’re totally right. Fixing now. Thanks!