On Sun, Jan 22, 2012 at 9:39 AM, tapczan <tapc...@unx.pl> wrote:
> 1.
> case "$-" in
>    *i*)    echo This shell is interactive ;;
>    *)    echo This shell is not interactive ;;
> esac
>

This is the correct way to test. What makes you say it's not working for you?

Reply via email to