I tried running this script in a workflow
#!/usr/local/bin/bash
string="a FeW WOrdS"
string=${string,,}
echo "$string"
But then in the Alfred workflow debugger, I get
/Users/me/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A4DF2A96-E3FC-4D43-BAEC-BD9CDFAA265E: line 10: ${string,,}: bad substitution
This script works in my normal terminal, so why doesn't it work in an Alfred script?