From: Ruediger Meier <sweet_f_a@gmx.de>
To: util-linux@vger.kernel.org
Subject: last: please review -F and --time-format
Date: Wed, 7 May 2014 16:31:53 +0200 [thread overview]
Message-ID: <201405071631.53729.sweet_f_a@gmx.de> (raw)
Hi,
IMO -F and --time-format=xxx need some review/cleanup regarding
logout times "still running" and "gone - no logout".
Is there any reason why -F and --time-format=full
look different? --time-format=notime looks ugly too.
See the all the cases here:
------------
for opt in -F --time-format=full --time-format=iso --time-format=short --time-format=notime; do
echo "### $opt ###"
./last -f ../tests/ts/last/wtmp.LE $opt | grep "running\| no logout"
done
### -F ###
torvalds linux hobby Mon Aug 26 02:57:08 1991 gone - no logout
reboot system boot system-name Wed Aug 28 20:00:00 2013 still running
### --time-format=full ###
torvalds linux hobby Mon Aug 26 02:57:08 1991 gone - no logout
reboot system boot system-name Wed Aug 28 20:00:00 2013 still running
### --time-format=iso ###
torvalds linux hobby 1991-08-26T02:57:08+0200 gone - no logout
reboot system boot system-name 2013-08-28T20:00:00+0200 still running
### --time-format=short ###
torvalds linux hobby Mon Aug 26 02:57 gone - no logout
reboot system boot system-name Wed Aug 28 20:00 still running
### --time-format=notime ###
torvalds linux hobby - no logout
reboot system boot system-name running
------------
cu,
Rudi
next reply other threads:[~2014-05-07 14:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 14:31 Ruediger Meier [this message]
2014-05-08 8:46 ` last: please review -F and --time-format Sami Kerola
2014-05-08 20:26 ` Ruediger Meier
2014-05-12 10:25 ` Karel Zak
2014-05-12 11:01 ` Ruediger Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201405071631.53729.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox