One interesting property of shell (bash, etc.) is that all heap objects are uniquely owned and never borrowed, so there's no GC necessary to achieve memory safety.
Conversation
Replying to
Most people don't know about namerefs so they would use eval which is obviously a lot scarier. It hardly matters in a language where simply writing $var is arbitrary code execution running the variable as a command.
Still, you CAN have references including dangling ones in Bash.
1
