Re:Why you shouldn't parse the output of ls(1)
by oefrha on Sunday June 16, 2024 @04:13AM
(#40695507)
Shelling out to `ls` (exec + opendir + readdir + stat) is not faster than opendir + readdir + stat. `ls --dired` is definitely not portable. readdir and stat (the libc functions) are portable, works across POSIX and other Unix-likes.
[ Parent
| on HN ]
There are no comments on this comment yet.