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

using ls with globbing is redundant: the shell will expand * 1* .png to a list of files, which will then be passed to the argument vector of ls, looking up the files twice. You could just do echo * 1* .png.

ls doesn't do glob matching. ls '*' would try to fstatat (FreeBSD) that character.

EDIT: formatting



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

Search: