Bash stuff done for compatibility