Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What about 'echo *' ? That's usually my last resort when dealing with malfunctioning ls.


The shell will attempt to expand '*' into arguments before it spawns the 'echo' process.

The shell cannot handle long argument lists, so this will fail rather quickly.


Yep, this is usually the first point of failure for commands acting on somewhat large directories, that drives people to use find and exec.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: