Hacker News new | past | comments | ask | show | jobs | submit login

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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: