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

You can also create files named e.g. '--help' (if you're not particularly malicious) and with globbing it'll cause e.g. 'ls *' to print help.


    touch -- '-f ..'
(If you want to lay an evil trap)

Remember that in most option parsing libraries, putting '--' in your arguments stops option parsing, so you can safely run:

    rm -- '-f ..'




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

Search: