phoenix-rtos-project icon indicating copy to clipboard operation
phoenix-rtos-project copied to clipboard

psh: ls -l: seconds are always printed instead of year

Open damianloew opened this issue 3 years ago • 3 comments

  • Current behavior (year is 2015): Screenshot from 2022-11-18 18-46-25

  • Intended behavior: -rw-rw-r-- 1 --- --- 0 Dec 18 2015 test

damianloew avatar Nov 18 '22 17:11 damianloew

I haven't noticed the problem with seconds being printed instead of year. The current version of ls -l command never prints the year. The original title of this issue is correct though, other implementations of ls do this so it would be useful to have this feature.

jmaksymowicz avatar Sep 25 '23 13:09 jmaksymowicz

Haven't tested the current code but until recently this still was a problem (DTR project 1.07.04, jffs2 rootfs):

image

nalajcie avatar Sep 25 '23 14:09 nalajcie

I haven't noticed the problem with seconds being printed instead of year. The current version of ls -l command never prints the year. The original title of this issue is correct though, other implementations of ls do this so it would be useful to have this feature.

Yeah, that's the point - it would be useful to print year if it's different than the current one.

damianloew avatar Sep 25 '23 16:09 damianloew