On 04/12/26 at 15:22, Pocket wrote:
Your script is incorrect

if test -t 0; then   # check for a terminal

     stuff goes here

fi

Square brackets are equivalents to "test" command, it works both ways:

if test -t 0; then   # check for a terminal
…
if [ -t 0 ]; then   # check for a terminal
…

Kind regards,
--
Franco Martelli

Reply via email to