|
From: | Bob Proulx |
Subject: | Re: test if shell is interactive |
Date: | Sun, 22 Jan 2012 13:15:40 -0700 |
User-agent: | Mutt/1.5.21 (2010-09-15) |
tapczan wrote: > #!/bin/bash > echo $- > > Execution: > > # ./a.sh > hB > > There is no 'i' so the session is non-interactive? > It was invoked from interactive. > Am I missing something? Shell scripts are not interactive. So what you are seeing above is correct. Bob
[Prev in Thread] | Current Thread | [Next in Thread] |