[Bug 238065] Regression in date(1)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 30 16:32:51 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238065

IPTRACE <arkadiusz.majewski at iptrace.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arkadiusz.majewski at iptrace.
                   |                            |pl

--- Comment #3 from IPTRACE <arkadiusz.majewski at iptrace.pl> ---
Please reopen the bug. I see the problem exists due to KornShell update.
To avoid this for sure it's desirable to insert absolute path to date command
(/bin/date).


user at serv:~ % date -r
date: option requires an argument -- r
usage: date [-jnRu] [-d dst] [-r seconds|file] [-t west] [-v[+|-]val[ymwdHMS]]
            [-I[date | hours | minutes | seconds]]
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]

user at serv:~ % /bin/date -r
date: option requires an argument -- r
usage: date [-jnRu] [-d dst] [-r seconds|file] [-t west] [-v[+|-]val[ymwdHMS]]
            [-I[date | hours | minutes | seconds]]
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]

user at serv:~ % ksh -c "date -r"
date: -r: unknown option
Usage: date [-aceEiLlmnRsuz] [-d date] [-f format] [-p format] [-T type] [-U
scale] [ +format | date ... | file ... ]

user at serv:~ % ksh -c "whereis date"
date: /bin/date /usr/share/man/man1/date.1.gz /usr/src/bin/date

user at serv:~ % sh -c "whereis date"
date: /bin/date /usr/share/man/man1/date.1.gz /usr/src/bin/date

user at serv~ % ksh -c "stat -x /bin/date"
  File: "/bin/date"
  Size: 36080        FileType: Regular File
  Mode: (0555/-r-xr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,98   Inode: 561849    Links: 1
Access: Thu May 30 18:16:35 2019
Modify: Wed Dec 26 00:10:24 2018
Change: Sun May 19 11:03:28 2019

user at serv~ % sh -c "stat -x /bin/date"
  File: "/bin/date"
  Size: 36080        FileType: Regular File
  Mode: (0555/-r-xr-xr-x)         Uid: (    0/    root)  Gid: (    0/   wheel)
Device: 0,98   Inode: 561849    Links: 1
Access: Thu May 30 18:16:35 2019
Modify: Wed Dec 26 00:10:24 2018
Change: Sun May 19 11:03:28 2019

user at serv~ % ksh -c "/bin/date -r"
date: option requires an argument -- r
usage: date [-jnRu] [-d dst] [-r seconds|file] [-t west] [-v[+|-]val[ymwdHMS]]
            [-I[date | hours | minutes | seconds]]
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list