Do not implicilty enable passthrough mode if no session name is given
commit8f80aa8044d7ecf0e43a0294a09007d056b20e4c
authorMarc André Tanner <mat@brain-dump.org>
Wed, 16 May 2018 08:44:37 +0000 (16 10:44 +0200)
committerMarc André Tanner <mat@brain-dump.org>
Wed, 16 May 2018 08:57:39 +0000 (16 10:57 +0200)
tree6b598f72f22d04a7fdd4374a3068c5608241bfc1
parentc33ee37b435bcdabe9022d10a56da97e531bbad3
Do not implicilty enable passthrough mode if no session name is given

Even when no session name was provided the passthrough flag was still
implicitly enabled in case stdin was not a terminal. This behavior
prevented the session list from being printed i.e.

  abduco < /dev/null

would not work as expected. Only enable implicit passthrough if stdin
is not a terminal *and* a session name is given.

Fix #34
abduco.c