Re: Proposed new POSIX sh policy, version two
David Weinehall <tao@debian.org> writes:
> On Thu, Nov 23, 2006 at 11:20:03AM -0800, Thomas Bushnell BSG wrote:
> > On Thu, 2006-11-23 at 19:33 +0200, Jari Aalto wrote:
> > > I don't see perl used that much for maintainer scripts, or daemon
> > > scripts.
> >
> > Exactly the *point*. So why isn't this your target?
> >
> > > Some prefer bash and see no problems. Others consider bash's memory
> > > consumption a problem when compared to other alternatives.
> >
> > The only alternative in Debian is dash, which explicitly says it's not a replacement:
> >
> > "bash" is a better shell for most users, since it has some nice
> > features absent from "dash", and is a required part of the system.
>
> dash is better for scripts (smaller memory footprint, faster), bash is
> better for interactive use. Most users need a good interactive shell,
> hence it's better for most users. That doesn't mean we should limit
> ourselves to using bash for non-interactive use though.
Right. Here is data for "alternative" interactive shells. Also
available in graphical format.
E.g. *ksh shells like mksh are real replacements for bash in
interactive use in low memory systems.
Jari
Picture 17. Memory consumption of various shells.
http://debian.cante.net/stem/faq/#can_i_save_even_more
PROGRAMS: shells
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30933 foo 16 0 1664 464 396 S 0.0 0.1 0:00.00 dash
[1.x - 1.14.6]
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10011 foo 17 0 3348 1988 1132 S 0.0 0.6 0:00.14 bash1
[3.x - 3.1.14]
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10229 foo 15 0 4692 1568 1260 S 0.0 0.5 0:00.33 bash
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30781 foo 17 0 2372 996 744 S 0.0 0.3 0:00.01 esh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1579 foo 16 0 3032 1112 900 S 0.0 0.3 0:00.01 ksh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
32107 foo 16 0 1784 588 484 S 0.0 0.2 0:00.00 mksh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1602 foo 17 0 1764 536 440 S 0.0 0.2 0:00.00 pdksh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30899 foo 16 0 1676 544 448 S 0.0 0.2 0:00.00 posh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31445 jaalto 17 0 6992 4928 2132 S 0.0 1.5 0:00.36 psh
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31002 foo 15 0 808 204 164 S 0.0 0.1 0:00.00 sash
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27122 foo 16 0 3800 2236 1596 S 0.0 0.7 0:00.14 zsh
Reply to: