fish-shell/tests/invocation/interactive.invoke
Charles Ferguson eb8b92fce7 Add tests for some other command line option invocations.
Some more of the invocations are tested in this change:

  - bad switches
  - errors in configuration files
  - regular command, configuration and init command ordering
  - persistence of variables over command invocation.
  - interactive and login switch use
  - terminal exit code return
  - version request

There are sure to be other invocations that should be tested, but
these give a fair number of them a go.
2017-06-29 21:00:08 -07:00

3 lines
171 B
Text

-c 'if status --is-login ; echo login shell ; else ; echo not login shell ; end'
-c 'if status --is-interactive ; echo interactive ; else ; echo not interactive ; end'
-i