[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does Debian not include POSIX-specified commands like bc and ed by default?



On 9/12/20 9:05 AM, Lone Learner wrote:
> POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the
> commands "bc" and "ed" to be part of POSIX.
> 
> Yet, in a brand new Debian installation (version 10 for example),
> these commands are missing by default:
> 
> $ bc
> bash: bc: command not found
> $ ed
> bash: ed: command not found
> 
> Why does Debian not include these commands by default? Of course, I
> can install them with "apt-get" and I did that.
> 
> apt-get install bc ed
> 
> The "bc" binary is only 87K in size. The entire package including the
> man page and documentation is only 209K in size.
> 
> Similarly the "ed" binary is only 55K in size. The entire package is
> only 93K in size.
> 
> What good reason is there not to include these tiny packages even
> though they are specified in POSIX?
> 
> [1]: https://pubs.opengroup.org/onlinepubs/009695399/idx/utilities.html
> 
> [2]: https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html
> 

Why should it include? POSIX is just a standard and Debian is even not POSIX
compliant AFAIK :) Also the certification is kind of costly.
But looking from the technical point of view, obviously none of reverse
dependencies of ed or bc are installed on your system and thus theses packages
are not needed. See apt-cache rdepends ed for example.

Best,
Alex


Reply to: