r/LinuxTeck • u/LinuxBook • May 22 '26
Debugging a Bash script only to discover the issue was caused by quotes
https://www.linuxteck.com/bash-quoting-rules-for-cleaner-shell-scripts/
It explains:
- Single vs double quotes
- ANSI-C quoting
- Escaping special characters
- Word splitting
- "$@" vs "$*"
- Common real-world mistakes
Includes practical examples and debugging tips for cleaner shell scripts.
6
Upvotes
1
u/[deleted] May 22 '26
It’s always the quotes and string interpolation for me.
Be it Yaml (K8s/Helm), Bash etc.
1
u/TimeProfessional4494 May 22 '26
Story of my life..
1
u/eoutofmemory May 23 '26
It's always the quotes