# 一千萬個為什麽

## 標準錯誤報告

\$ gcc
gcc: no input files


## 最佳答案

It dates back to the earliest days of Unix programming. It was always a recommendation that error messages be prefixed by the name of the command generating them, not least so that if errors occur in a pipeline of commands, you can tell which of the various commands generated the error message. You can see the style in K&R 1st Edition, in some of the example programs (not quite all), and also in 'Software Tools' by Kernighan & Plauger, and in 'The UNIX Programming Environment' by Kernighan & Pike.