mirror of
https://github.com/tstack/lnav
synced 2024-11-19 15:25:34 +00:00
63dba408ec
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
14 lines
284 B
Bash
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
|