Re:Why you shouldn't parse the output of ls(1)
by TeMPOraL on Sunday June 16, 2024 @03:36AM
(#40695352)
`ls` is faster and more portable in Unix-land, fallback to emulation on non-Unix platforms is easier than asking users to install a port of half of Unix just to have `ls`, and user customization points are what Emacs is made of and for in the first place.
[ Parent
| on HN ]
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.