I noticed that this command returns NO through ssh:
> $ ssh user@host "if [ -t 1 ]; then echo YES; else echo NO; fi"
> NO
and YES when run locally (of course):
> $ if [ -t 1 ]; then echo YES; else echo NO; fi
> YES
I can't find any command line option related to running command remotely
in terminal. I think users intuitively expect commands to be run in
terminal.
Is something broken with my ssh setup?
ssh on FreeBSD 10.1
Yuri
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev