Getting an “ambiguous redirect” error
Bash can be pretty obtuse sometimes. The following commands all return different error messages for basically the same error: $ echo hello > bash: syntax error near unexpected token `newline` $ echo hello > ${NONEXISTENT} bash: ${NONEXISTENT}: ambiguous redirect $ echo hello > “${NONEXISTENT}” bash: : No such file or directory Adding quotes around the … Read more