bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test if shell is interactive


From: DJ Mills
Subject: Re: test if shell is interactive
Date: Sun, 22 Jan 2012 13:06:06 -0500

On Sun, Jan 22, 2012 at 9:39 AM, tapczan <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]