lnav/test/test_cli.sh
Timothy Stack 63dba408ec [stdin] Keep the stdin piper file in .lnav so that it can be reopened
When piping the output of a program into lnav, the data would
be dumped to the terminal on exit so that it would not be
lost.  Since that is a bit noisy, the temp file used to store
the data is now left in .lnav so that it can be reopened later.
Older stdin captures are automatically removed after a day.

Also took the opportunity to start using filesystem::path more.

Fixes #436
2019-07-29 22:18:32 -07:00

14 lines
284 B
Bash

#! /bin/bash
export TZ="UTC"
run_test ${lnav_test} -t -n <<EOF
Hello, World!
Goodbye, World!
EOF
check_output "stdin timestamping not working?" <<EOF
2013-06-06T19:13:20.123 Hello, World!
2013-06-06T19:13:20.123 Goodbye, World!
2013-06-06T19:13:20.123 ---- END-OF-STDIN ----
EOF