I obtain a different behavior when I call Bash string removal inside a script rather than directly in shell.
My case, running that directly in console:
id="00902"
echo ${id##+(0)}
output:
902
But, running this script, in a file
#!/bin/bash
id="00902"
echo ${id##+(0)}
Output:
00902
What am I missing?