Why is the file /bin/false so large?

Marius Gedminas marius at pov.lt
Wed Feb 10 08:49:23 UTC 2010


On Wed, Feb 10, 2010 at 08:27:30AM +0100, Loïc Grenié wrote:
> 2010/2/9 Seth <ubuntu-users at sehe.nl>:
> > Loïc Grenié <loic.grenie at gmail.com> :
> > >   Yes and no, sh/bash/dash is probably already in memory for some
> > >  (many) shell-scripts.
> >
> > The same thing goes for /bin/false _and_ a decent shell will cash the inode
> > for it.
> 
>     Indeed. I've never said the contrary. But you can still make
>     /bin/true and /bin/false smaller.

Incidentally, 'true' and 'false' are builtins in most shells, so the
binaries in /bin are almost never used.

> > setting up a shell environment, sourcing profiles
> > (beware /etc/bash_completion and their kin)
> 
>     I don't know whether bash parses its profiles for scripts (csh does not
>   for instance)

It does not.

dash, which is /bin/sh on most Ubuntu systems, also does not.

Regards,
Marius Gedminas
-- 
This is, or so I'm told, a classic book. I can see why. It is long and it
requires a great effort to finish it. If you go through a great effort to
suffer for a long time, you are allowed to sneer at people who can't be
bothered. That's the surest sign of classic art.
		-- Lars Wirzenius
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100210/90c4390c/attachment.pgp>


More information about the ubuntu-users mailing list