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

Yes, but if someone only just learned about less and piping, they probably won't know about fd 2 being stderr, fd based redirection, and hence don't understand it at all



For my beginner programming class, I have them use a script `compile` which handles compilation and linking, while also enabling enabling all the warnings/errors I think are helpful, and also doing the above redirection. An absolute beginner doesn't gain anything from invoking `g++` directly.




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

Search: