当您在 GNU 系统上运行“bc”时,它会打印出以下文本:
~$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
与其他几个 GNU 实用程序相比:
~$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
和
~$ grep --version
grep (GNU grep) 3.3
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
和
~$ ls --version
ls (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
bc 以这种方式列出所有版权日期而不是仅使用“Copyright 2017 Free Software Foundation, Inc.”是否有任何原因?
答案1
bc
如下GNU 推荐的版权声明做法,其中涉及列出每个出版年份,尽管此处的版权声明列出的年份比看到的bc
版本(甚至包括dc
版本)要多。
其他工具仅列出上次发布的年份,使用gnulib的version_etc
函数它只打印 gnulib 中最后更新的年份。
也可以看看项目活跃期间,版权声明必须定期更新吗?