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

Note also that some[1] commands will have a "--" (dash dash) flag indicating "end of flags", so (eg): "cat -- -n" really would cat a file called "-n"[2].

[1] on my BSD system, many internal Tcl commands honor this convention. Damned if I can find a section 1 shell command that uses the convention, but I'm sure I've seen them.

[2] my version of cat doesn't have a -- flag, so my example is contrived; not sure if GNU cat differs.

EDIT: typo, perl(1) supports "--". See perlrun(1) for details.




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

Search: