ormaaj 1359994823 learn Bash's read -p prints a "prompt" before reading input. It is incompatible with Most korn shells and Zsh, which use the same flag for a different purpose. It is also not specified by POSIX. Consider something like this instead: printf %s 'Enter some input: ' >&2; read -${BASH_VERSION+e}r myInput ormaaj 1359997523 forget ormaaj 1359997724 learn Bash's read -p prints a prompt before reading input. It's incompatible with most Korn shells and Zsh, which use -p for a different purpose. It's also not specified by POSIX. Consider something like this (but note they aren't quite identical): [[ -t 0 ]] && printf %s 'Enter some input: ' >&2; read -${BASH_VERSION+e}r myInput