Date: Thu, 10 May 2018 17:24:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228123] date command gives wrong time when used in tcsh aliases Message-ID: <bug-228123-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228123 Bug ID: 228123 Summary: date command gives wrong time when used in tcsh aliases Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: allcoms@gmail.com I am running a fully up to date FreeBSD 11.1-RELEASE-p10 / amd64 and I am using tcsh for my shell. I created a couple of aliases to create date and timestamped ZFS snapshots and added them to my ~/.cshrc but the time output by my custom `date` format command is always behind the actual time. If I run my aliases straight after booting, they are only about 1m behind but the longer my machine is turned on, the more the time in the aliases gets out of sync with the actual time. If I run just `date` or if I run the date command using my formatted output from the command line, I get the correct time. It is only when date is executed via my aliases that the time falls behind. One of my aliases that exhibits this issue: alias zsd sudo zfs snapshot -r data/media@`date +%d-%m-%Y-%T` -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228123-227>
