I'd like to do this in bash
#!/bin/bash func(){ return 1; } e=func echo some text exit e
but I'm getting
exit: func: numeric argument required
AFAIK variables in bash are without a type, how to "convert" it to int to satisfy requirement?